Easwy Yang wrote:

> Reproducible: Always
> 
> Steps to reproduce:
> 1. Place an uppercase mark A in file aa.c;
> 2. use :echo line("'A"), it will display the correct line number;
> 3. change to another file, execute :echo line("'A"), it will display the line
>    number too.
> 
> Actual result:
> See above.
> 
> Expected result:
> In a file other than the uppercase mark placed, line() should return 0, as
> vim 6.3 behaved.

This is actually documented.  The idea is that you can use line("'A") to
check if the mark 'A is set.  To find out what buffer the mark refers to
use the getpos() function.

-- 
ARTHUR: Listen, old crone!  Unless you tell us where we can buy a shrubbery,
        my friend and I will ... we will say "Ni!"
CRONE:  Do your worst!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to