diff options
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index f63c5a8..cd01be5 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -243,7 +243,7 @@ sub cmd_undo { $undo_index++; } print "Undoing entry $undo_index of " . $#undo_buffer; - + _restore_undo_entry($undo_index); } @@ -1104,6 +1104,8 @@ sub _commit_line { _update_mode(M_INS); _clear_undo_buffer(); + return unless length $line; # ignore empty lines + if ($line =~ /^[\Q$cmdchars\E]/) { print "Committing line as command" if DEBUG; Irssi::command($line); |