comparison src/misc2.c @ 44:af1bcb9a13c0

updated for version 7.0027
author vimboss
date Fri, 31 Dec 2004 20:56:11 +0000
parents f529edb9bab3
children 014ba200db86
comparison
equal deleted inserted replaced
43:f55897d6921d 44:af1bcb9a13c0
105 { 105 {
106 int rc = getvpos(&curwin->w_cursor, wcol); 106 int rc = getvpos(&curwin->w_cursor, wcol);
107 107
108 if (wcol == MAXCOL || rc == FAIL) 108 if (wcol == MAXCOL || rc == FAIL)
109 curwin->w_valid &= ~VALID_VIRTCOL; 109 curwin->w_valid &= ~VALID_VIRTCOL;
110 else 110 else if (*ml_get_cursor() != TAB)
111 { 111 {
112 /* Virtcol is valid */ 112 /* Virtcol is valid when not on a TAB */
113 curwin->w_valid |= VALID_VIRTCOL; 113 curwin->w_valid |= VALID_VIRTCOL;
114 curwin->w_virtcol = wcol; 114 curwin->w_virtcol = wcol;
115 } 115 }
116 return rc; 116 return rc;
117 } 117 }