mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-11 19:33:47 -05:00
Use robust operators ==# or ==? instead of ==
This commit is contained in:
@@ -67,7 +67,7 @@ if !exists('g:indent_guides_exclude_filetypes')
|
||||
endif
|
||||
|
||||
" Default mapping
|
||||
if !hasmapto('<Plug>IndentGuidesToggle', 'n') && maparg('<Leader>ig', 'n') == ''
|
||||
if !hasmapto('<Plug>IndentGuidesToggle', 'n') && maparg('<Leader>ig', 'n') ==# ''
|
||||
\ && g:indent_guides_default_mapping != 0
|
||||
nmap <silent><unique> <Leader>ig <Plug>IndentGuidesToggle
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user