diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-27 19:25:24 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-27 19:25:24 +0000 |
commit | 4a1d46e1a48dfc60defb924d971486d18fd41c10 (patch) | |
tree | 7dcd88a4bcd802502dfb1a88540dfcf84c16766f /vim-mode | |
parent | vim_mode: Don't fail if prompt_info.pl isn't available. (diff) | |
download | irssi-scripts-4a1d46e1a48dfc60defb924d971486d18fd41c10.tar.gz irssi-scripts-4a1d46e1a48dfc60defb924d971486d18fd41c10.zip |
vim_mode: Add missing DEBUGs in prints.
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 26f22e5..ef411e2 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -233,11 +233,11 @@ sub cmd_undo { print "Undo!" if DEBUG; if ($undo_index > $#undo_buffer) { $undo_index = $#undo_buffer; - print "No further undo."; + print "No further undo." if DEBUG; } elsif ($undo_index != $#undo_buffer) { $undo_index++; } - print "Undoing entry $undo_index of " . $#undo_buffer; + print "Undoing entry $undo_index of " . $#undo_buffer if DEBUG; _restore_undo_entry($undo_index); } @@ -1070,7 +1070,7 @@ sub UNLOAD { sub _add_undo_entry { my ($line, $pos) = @_; # add to the front of the buffer - print "adding $line to undo list"; + print "adding $line to undo list" if DEBUG; unshift @undo_buffer, [$line, $pos]; $undo_index = 0; } |