diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-05-05 18:26:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-05-05 18:26:14 +0000 |
commit | c6fad60c72bac0b0ba1b7912f866caa3a6cb744c (patch) | |
tree | cb1fdaddf8e7f48afb82b1d028764ce7521e34c2 /readline/undo.c | |
parent | c3f93e41631d798ff739e1936c51b29515cd4248 (diff) | |
download | gdb-c6fad60c72bac0b0ba1b7912f866caa3a6cb744c.tar.gz |
Readline 5.1 import for HEAD.
Diffstat (limited to 'readline/undo.c')
-rw-r--r-- | readline/undo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/readline/undo.c b/readline/undo.c index 25c287b5a2d..fedfa121fc0 100644 --- a/readline/undo.c +++ b/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; } |