mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
dont add a trailing slash to auto-named bookmarked dirs
this breaks the highlighting of the nerdtree buffer, and seems dodgy
This commit is contained in:
@@ -3563,7 +3563,7 @@ function! s:bookmarkNode(...)
|
||||
if currentNode != {}
|
||||
let name = a:1
|
||||
if empty(name)
|
||||
let name = currentNode.path.getLastPathComponent(1)
|
||||
let name = currentNode.path.getLastPathComponent(0)
|
||||
endif
|
||||
try
|
||||
call currentNode.bookmark(name)
|
||||
|
||||
Reference in New Issue
Block a user