aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-28 21:01:13 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-28 21:01:13 +0000
commit27018ca2b1f0ae4322ce3648b81b76adfe385c7d (patch)
tree386acfddc0761aead8433ad92cb5fff0fa3af97b /vim-mode/vim_mode.pl
parentMerge remote branch 'remotes/origin/dev' (diff)
downloadirssi-scripts-27018ca2b1f0ae4322ce3648b81b76adfe385c7d.tar.gz
irssi-scripts-27018ca2b1f0ae4322ce3648b81b76adfe385c7d.zip
vim_mode: Add UTF-8 support for ~.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-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 085ea78..d44452c 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -676,7 +676,7 @@ sub cmd_movement_tilde {
my $input = _input();
my $string = substr $input, $pos, $count;
- $string =~ tr/a-zA-Z/A-Za-z/;
+ $string =~ s/(.)/(uc($1) eq $1) ? lc($1) : uc($1)/ge;
substr $input, $pos, $count, $string;
_input($input);