diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
commit | d74ba4e5b27b8dd827b9ecdffee4526c48a887ce (patch) | |
tree | 303f50f87452366cd763f6855df5150e4d00190d /readline/undo.c | |
parent | f2267417bd269b36f69e65d88da5bb25ad333606 (diff) | |
download | gdb-cvs/import-1.1.1.tar.gz |
import of readlilne 5.1import-1.1.1cvs/import-1.1.1
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; } |