comparison src/eval.c @ 671:83a006f81bac v7.0199

updated for version 7.0199
author vimboss
date Thu, 16 Feb 2006 22:11:02 +0000
parents 9090f866cd57
children 513866ffe6af
comparison
equal deleted inserted replaced
670:f892bda292a8 671:83a006f81bac
15507 if (name[0] == 'w' && lnum) 15507 if (name[0] == 'w' && lnum)
15508 { 15508 {
15509 pos.col = 0; 15509 pos.col = 0;
15510 if (name[1] == '0') /* "w0": first visible line */ 15510 if (name[1] == '0') /* "w0": first visible line */
15511 { 15511 {
15512 update_topline();
15512 pos.lnum = curwin->w_topline; 15513 pos.lnum = curwin->w_topline;
15513 return &pos; 15514 return &pos;
15514 } 15515 }
15515 else if (name[1] == '$') /* "w$": last visible line */ 15516 else if (name[1] == '$') /* "w$": last visible line */
15516 { 15517 {
15518 validate_botline();
15517 pos.lnum = curwin->w_botline - 1; 15519 pos.lnum = curwin->w_botline - 1;
15518 return &pos; 15520 return &pos;
15519 } 15521 }
15520 } 15522 }
15521 else if (name[0] == '$') /* last column or line */ 15523 else if (name[0] == '$') /* last column or line */