diff options
-rw-r--r-- | editors/vi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/vi.c b/editors/vi.c index 495332a46..2e4f7fcb5 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -3676,11 +3676,6 @@ static void do_cmd(int c) | |||
3676 | string_insert(dot, p, ALLOW_UNDO); // insert the string | 3676 | string_insert(dot, p, ALLOW_UNDO); // insert the string |
3677 | end_cmd_q(); // stop adding to q | 3677 | end_cmd_q(); // stop adding to q |
3678 | break; | 3678 | break; |
3679 | #if ENABLE_FEATURE_VI_UNDO | ||
3680 | case 'u': // u- undo last operation | ||
3681 | undo_pop(); | ||
3682 | break; | ||
3683 | #endif | ||
3684 | case 'U': // U- Undo; replace current line with original version | 3679 | case 'U': // U- Undo; replace current line with original version |
3685 | if (reg[Ureg] != NULL) { | 3680 | if (reg[Ureg] != NULL) { |
3686 | p = begin_line(dot); | 3681 | p = begin_line(dot); |
@@ -3692,6 +3687,11 @@ static void do_cmd(int c) | |||
3692 | } | 3687 | } |
3693 | break; | 3688 | break; |
3694 | #endif /* FEATURE_VI_YANKMARK */ | 3689 | #endif /* FEATURE_VI_YANKMARK */ |
3690 | #if ENABLE_FEATURE_VI_UNDO | ||
3691 | case 'u': // u- undo last operation | ||
3692 | undo_pop(); | ||
3693 | break; | ||
3694 | #endif | ||
3695 | case '$': // $- goto end of line | 3695 | case '$': // $- goto end of line |
3696 | case KEYCODE_END: // Cursor Key End | 3696 | case KEYCODE_END: // Cursor Key End |
3697 | for (;;) { | 3697 | for (;;) { |