turn all == into ==# or ==? when comparing strings

or vimwiki#path#is_equal, if the strings are file names
This commit is contained in:
EinfachToll
2015-02-09 20:05:25 +01:00
parent b240b52a3f
commit 9ada4d2041
9 changed files with 62 additions and 59 deletions
+3 -3
View File
@@ -81,11 +81,11 @@ function! vimwiki#markdown_base#follow_link(split, ...) "{{{ Parse link at curso
" XXX: @Maxim: most likely! I am still working on a seemless way to
" integrate regexp's without complicating syntax/vimwiki.vim
else
if a:split == "split"
if a:split ==# "split"
let cmd = ":split "
elseif a:split == "vsplit"
elseif a:split ==# "vsplit"
let cmd = ":vsplit "
elseif a:split == "tabnew"
elseif a:split ==# "tabnew"
let cmd = ":tabnew "
else
let cmd = ":e "