aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index ef411e2..58f402b 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -237,8 +237,9 @@ sub cmd_undo {
} elsif ($undo_index != $#undo_buffer) {
$undo_index++;
}
+
print "Undoing entry $undo_index of " . $#undo_buffer if DEBUG;
-
+
_restore_undo_entry($undo_index);
}
@@ -1097,6 +1098,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);