aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-30 22:59:33 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-30 23:16:53 +0000
commit64ecf5ca769f74266d8c5a1bdf577cf4645a1985 (patch)
treead62d9e5edbe18b66a08cd7cc6cac834d6b77d64 /vim-mode/vim_mode.pl
parentvim_mode: Document ; and . (diff)
downloadirssi-scripts-64ecf5ca769f74266d8c5a1bdf577cf4645a1985.tar.gz
irssi-scripts-64ecf5ca769f74266d8c5a1bdf577cf4645a1985.zip
vim_mode: Fix esc in ex mode leaving the prompt unchanged.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 4ce53f6..fe7fb58 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1402,7 +1402,6 @@ sub handle_command_ex {
} elsif ($key == 10) {
print "Run ex-mode command" if DEBUG;
cmd_ex_command();
- _set_prompt('');
@ex_buf = ();
_update_mode(M_CMD);
@@ -1621,6 +1620,9 @@ sub _update_mode {
# It's necessary when pressing enter.
} elsif ($mode == M_CMD and $new_mode == M_INS) {
$last->{char} = 'i';
+ # Make sure prompt is cleared when leaving ex mode.
+ } elsif ($mode == M_EX and $new_mode != M_EX) {
+ _set_prompt('');
}
$mode = $new_mode;