aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/toggle_option_flag.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim
index 68db2703..809e1f53 100644
--- a/vim/plugin/toggle_option_flag.vim
+++ b/vim/plugin/toggle_option_flag.vim
@@ -49,7 +49,7 @@ function! s:Toggle(option, flag, local)
let l:operation = l:current =~# '\V\C' . l:flag_pattern ? '-=' : '+='
" Build the command strings to set and then show the value
- let l:cmd_set = l:set . ' ' . a:option . l:operation . a:flag
+ let l:cmd_set = l:set . ' ' . a:option . l:operation . escape(a:flag, '\ ')
let l:cmd_show = l:set . ' ' . a:option . '?'
" Run the set and show command strings