From 2d640cdef4deba72663da973151f83b96f1e7118 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 27 Sep 2010 20:25:56 +0100 Subject: fixed _commit_line to ignore empty lines (to aavoid insufficient args to /say error) --- vim-mode/vim_mode.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3