diff options
Diffstat (limited to 'lib/readline/undo.c')
-rw-r--r-- | lib/readline/undo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/readline/undo.c b/lib/readline/undo.c index 25c287b5..fedfa121 100644 --- a/lib/readline/undo.c +++ b/lib/readline/undo.c @@ -237,7 +237,12 @@ rl_revert_line (count, key) { while (rl_undo_list) rl_do_undo (); +#if defined (VI_MODE) + if (rl_editing_mode == vi_mode) + rl_point = rl_mark = 0; /* rl_end should be set correctly */ +#endif } + return 0; } |