mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Do a case sensitive comparison of new/existing buffers.
When NERTDtree opens a file, it compares this new file to all open buffers to see if it's already open. If the user has 'ignorecase' turned on then the comparison of "file" and "File" says they're the same, and NERDTree won't reopen the file. This commit forces a case sensitive comparison by using the ==# operator.
This commit is contained in:
@@ -817,7 +817,7 @@ function! s:Path.tabnr()
|
||||
let str = self.str()
|
||||
for t in range(tabpagenr('$'))
|
||||
for b in tabpagebuflist(t+1)
|
||||
if str == expand('#' . b . ':p')
|
||||
if str ==# expand('#' . b . ':p')
|
||||
return t+1
|
||||
endif
|
||||
endfor
|
||||
|
||||
Reference in New Issue
Block a user