aboutsummaryrefslogtreecommitdiff
path: root/readline/undo.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2006-04-20 20:05:52 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2006-04-20 20:05:52 +0000
commitb585a9fad59f9d0c07681778b97d36b67bd9748d (patch)
treed809e30a40f38fd19b05d2cbd920187e84108432 /readline/undo.c
parent84041b4c47edb0461f3b82afb77ca2d81819ebfa (diff)
downloadgdb-FSF.zip
gdb-FSF.tar.gz
gdb-FSF.tar.bz2
import of readlilne 5.1FSF
Diffstat (limited to 'readline/undo.c')
-rw-r--r--readline/undo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/readline/undo.c b/readline/undo.c
index 25c287b..fedfa12 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;
}