diff options
author | ache <ache@FreeBSD.org> | 2006-03-27 22:47:12 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2006-03-27 22:47:12 +0000 |
commit | 8aeb9782f4a5d98c23b918bdae2477810088d0d1 (patch) | |
tree | 5e38d670d1899750fd24e8f171fd03d714ab0681 /contrib/libreadline/undo.c | |
parent | 17222c720e12474e93a40d68fd9646bad49690a7 (diff) | |
download | FreeBSD-src-8aeb9782f4a5d98c23b918bdae2477810088d0d1.zip FreeBSD-src-8aeb9782f4a5d98c23b918bdae2477810088d0d1.tar.gz |
Virgin import of GNU Readline 5.1
Diffstat (limited to 'contrib/libreadline/undo.c')
-rw-r--r-- | contrib/libreadline/undo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/libreadline/undo.c b/contrib/libreadline/undo.c index 25c287b..fedfa12 100644 --- a/contrib/libreadline/undo.c +++ b/contrib/libreadline/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; } |