Use robust operators ==# or ==? instead of ==

This commit is contained in:
Caleb Maclennan
2023-02-21 16:13:57 +03:00
parent 8e6d5f7afd
commit 63554a38bb
2 changed files with 4 additions and 4 deletions

View File

@@ -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