mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53: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 != {}
|
if currentNode != {}
|
||||||
let name = a:1
|
let name = a:1
|
||||||
if empty(name)
|
if empty(name)
|
||||||
let name = currentNode.path.getLastPathComponent(1)
|
let name = currentNode.path.getLastPathComponent(0)
|
||||||
endif
|
endif
|
||||||
try
|
try
|
||||||
call currentNode.bookmark(name)
|
call currentNode.bookmark(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user