1
0
forked from aniani/vim

updated for version 7.0196

This commit is contained in:
Bram Moolenaar
2006-02-10 23:23:57 +00:00
parent c7453f52d4
commit f52c725c47
6 changed files with 69 additions and 30 deletions

View File

@@ -15378,7 +15378,21 @@ var2fpos(varp, lnum)
return NULL;
return pp;
}
if (name[0] == '$') /* last column or line */
if (name[0] == 'w' && lnum)
{
pos.col = 0;
if (name[1] == '0') /* "w0": first visible line */
{
pos.lnum = curwin->w_topline;
return &pos;
}
else if (name[1] == '$') /* "w$": last visible line */
{
pos.lnum = curwin->w_botline - 1;
return &pos;
}
}
else if (name[0] == '$') /* last column or line */
{
if (lnum)
{