From 4a1d46e1a48dfc60defb924d971486d18fd41c10 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Sep 2010 21:25:24 +0200 Subject: vim_mode: Add missing DEBUGs in prints. --- vim-mode/vim_mode.pl | 6 +++--- 1 file 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; } -- cgit v1.2.3