Mercurial > vim
comparison src/normal.c @ 1475:c87ce0b2ee2a v7.1.190
updated for version 7.1-190
author | vimboss |
---|---|
date | Thu, 03 Jan 2008 12:20:39 +0000 |
parents | 88c0c6c9eada |
children | 0f3f3090491f |
comparison
equal
deleted
inserted
replaced
1474:276244befa5b | 1475:c87ce0b2ee2a |
---|---|
6562 | 6562 |
6563 if (findsent(cap->arg, cap->count1) == FAIL) | 6563 if (findsent(cap->arg, cap->count1) == FAIL) |
6564 clearopbeep(cap->oap); | 6564 clearopbeep(cap->oap); |
6565 else | 6565 else |
6566 { | 6566 { |
6567 /* Don't leave the cursor on the NUL past a line */ | |
6568 if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL) | |
6569 { | |
6570 --curwin->w_cursor.col; | |
6571 cap->oap->inclusive = TRUE; | |
6572 } | |
6567 #ifdef FEAT_VIRTUALEDIT | 6573 #ifdef FEAT_VIRTUALEDIT |
6568 curwin->w_cursor.coladd = 0; | 6574 curwin->w_cursor.coladd = 0; |
6569 #endif | 6575 #endif |
6570 #ifdef FEAT_FOLDING | 6576 #ifdef FEAT_FOLDING |
6571 if ((fdo_flags & FDO_BLOCK) && KeyTyped && cap->oap->op_type == OP_NOP) | 6577 if ((fdo_flags & FDO_BLOCK) && KeyTyped && cap->oap->op_type == OP_NOP) |