diff options
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/toggle_option_flag.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim index b63e0eb8..c3ea01a0 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -18,13 +18,13 @@ let g:loaded_toggle_option_flag = 1 function! s:Toggle(option, flag, local) " Check for weird options, we don't want to :execute anything funny - if a:option =~# '\m[^a-z]' + if a:option =~# '\m\L' echoerr 'Illegal option name' return endif " Weird flags, too; should be a single inoffensive char - if a:flag !~# '\m^[a-z0-9.]$' + if a:flag !~# '\m^[\a.]$' echoerr 'Illegal flag' return endif |