comparison src/normal.c @ 1388:26cbd39f2251 v7.1.103

updated for version 7.1-103
author vimboss
date Thu, 13 Sep 2007 13:34:02 +0000
parents 2f70b8f1f1e3
children bdcfe793d49f
comparison
equal deleted inserted replaced
1387:35f3b20de2dd 1388:26cbd39f2251
8362 n = end_word(cap->count1, cap->arg, flag, FALSE); 8362 n = end_word(cap->count1, cap->arg, flag, FALSE);
8363 else 8363 else
8364 n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP); 8364 n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
8365 8365
8366 /* Don't leave the cursor on the NUL past a line */ 8366 /* Don't leave the cursor on the NUL past a line */
8367 if (curwin->w_cursor.col && gchar_cursor() == NUL) 8367 if (n != FAIL && curwin->w_cursor.col > 0 && gchar_cursor() == NUL)
8368 { 8368 {
8369 --curwin->w_cursor.col; 8369 --curwin->w_cursor.col;
8370 cap->oap->inclusive = TRUE; 8370 cap->oap->inclusive = TRUE;
8371 } 8371 }
8372 8372