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

View File

@ -17,7 +17,7 @@ if vimwiki#u#is_windows()
endfunction
else
function! vimwiki#path#is_equal(p1, p2)
return a:p1 == a:p2
return a:p1 ==# a:p2
endfunction
endif "}}}
@ -26,7 +26,7 @@ function! vimwiki#path#normalize(path) "{{{
let path = a:path
while 1
let result = substitute(path, '/[^/]\+/\.\.', '', '')
if result == path
if result ==# path
break
endif
let path = result