aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-09-30 23:38:30 +0000
committerTom Feist <shabble@metavore.org>2010-09-30 23:38:30 +0000
commit0baba895e6047e2a192c5b9cdc06aaebf5d4500c (patch)
tree356c49a790e5605976e78f30817b694a890ad056 /vim-mode
parentmore fixing to undo, weird bug that C-d would make it work when it shouldn't. (diff)
downloadirssi-scripts-0baba895e6047e2a192c5b9cdc06aaebf5d4500c.tar.gz
irssi-scripts-0baba895e6047e2a192c5b9cdc06aaebf5d4500c.zip
beginnings of configurable undo buffer size limit.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 28a6383..fcbe944 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1421,6 +1421,7 @@ sub vim_mode_init {
Irssi::settings_add_str('vim_mode', 'vim_mode_cmd_seq', '');
Irssi::settings_add_bool('vim_mode', 'vim_mode_debug', 0);
Irssi::settings_add_bool('vim_mode', 'vim_mode_utf8', 1);
+ Irssi::settings_add_int('vim_mode', 'vim_mode_max_undo_lines', 50);
setup_changed();
_reset_undo_buffer();
@@ -1483,6 +1484,7 @@ sub _add_undo_entry {
unshift @undo_buffer, [$line, $pos];
$undo_index = 0;
}
+ my $max = Irssi::settings_get_int('vim_mode_max_undo_lines');
}
sub _restore_undo_entry {