aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-29 14:11:28 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-29 14:11:28 +0000
commita3349f29c86725c9cad89eff66152da2a057ae75 (patch)
tree20e4e9afa1308e9ed7499bcd635c5984f29921dd /vim-mode/vim_mode.pl
parentvim_mode: Add support for insert mode repetition and counts. (diff)
downloadirssi-scripts-a3349f29c86725c9cad89eff66152da2a057ae75.tar.gz
irssi-scripts-a3349f29c86725c9cad89eff66152da2a057ae75.zip
vim_mode: Add missing if DEBUG.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 3a81b88..c55481c 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1307,7 +1307,7 @@ sub _add_undo_entry {
# check it's not a dupe of the list head
my $head = $undo_buffer[0];
if ($line eq $head->[0] && $pos == $head->[1]) {
- print "Not adding duplicate to undo list";
+ print "Not adding duplicate to undo list" if DEBUG;
} else {
print "adding $line to undo list" if DEBUG;
# add to the front of the buffer