aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 16:34:51 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 16:34:51 +0000
commit6eda12ac8b4c0ed2122bf35e2d6e6f4a7e30db62 (patch)
tree297bdf35b1f08a1bcab6b8831ec31693ad3d103f
parentvim_mode: Backspacing over : in ex-mode exists it. (diff)
downloadirssi-scripts-6eda12ac8b4c0ed2122bf35e2d6e6f4a7e30db62.tar.gz
irssi-scripts-6eda12ac8b4c0ed2122bf35e2d6e6f4a7e30db62.zip
vim_mode: Ignore control characters in ex-mode for now.
Reported by estragib.
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 34460f8..ed348e4 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2210,6 +2210,10 @@ sub handle_command_ex {
cmd_ex_command();
_update_mode(M_CMD);
+ # Ignore control characters for now.
+ } elsif ($key < 32) {
+ # TODO: use them later, e.g. completion
+
# Append entered key
} else {
push @ex_buf, chr $key;