diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-28 21:01:13 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-28 21:01:13 +0000 |
commit | 27018ca2b1f0ae4322ce3648b81b76adfe385c7d (patch) | |
tree | 386acfddc0761aead8433ad92cb5fff0fa3af97b /vim-mode/vim_mode.pl | |
parent | Merge remote branch 'remotes/origin/dev' (diff) | |
download | irssi-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.pl | 2 |
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); |