Use robust comparison operators

This commit is contained in:
Caleb Maclennan
2019-11-15 10:55:43 +03:00
parent c6727cac47
commit ed3630df12
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ fun! PencilMode()
if b:pencil_wrap_mode ==# s:WRAP_MODE_SOFT
return get(g:pencil#mode_indicators, 'soft', 'S')
elsei b:pencil_wrap_mode ==# s:WRAP_MODE_HARD
if &fo =~ 'a'
if &fo =~# 'a'
return get(g:pencil#mode_indicators, 'auto', 'A')
el
return get(g:pencil#mode_indicators, 'hard', 'H')