mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b1a850b85 | ||
|
|
89a1a4355b | ||
|
|
62b78de367 | ||
|
|
aef6baf6e2 |
@@ -1,6 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
#### 5.2...
|
||||
- **.5**: Use `:mode` instead of `:redraw!` when updating menu. (PhilRunninger) #1016
|
||||
- **.4**: When searching for root line num, stop at end of file. (PhilRunninger) #1015
|
||||
- **.3**: Fix `<CR>` key map on the bookmark (lkebin) #1014
|
||||
- **.2**: Make Enter work on the `.. ( up a dir )` line (PhilRunninger) #1013
|
||||
- **.1**: Fix nerdtree#version() on Windows. (PhilRunninger) N/A
|
||||
- **.0**: Expand functionality of `<CR>` mapping. (PhilRunninger) #1011
|
||||
|
||||
@@ -95,7 +95,7 @@ endfunction
|
||||
"FUNCTION: s:customOpenBookmark() {{{1
|
||||
" Open bookmark node with the "custom" key, initially <CR>.
|
||||
function! s:customOpenBookmark(node)
|
||||
if node.isDirectory
|
||||
if a:node.path.isDirectory
|
||||
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir)
|
||||
else
|
||||
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)
|
||||
|
||||
@@ -31,7 +31,7 @@ function! s:MenuController.showMenu()
|
||||
let l:done = 0
|
||||
|
||||
while !l:done
|
||||
redraw!
|
||||
mode
|
||||
call self._echoPrompt()
|
||||
|
||||
let l:key = nr2char(getchar())
|
||||
|
||||
@@ -254,7 +254,7 @@ endfunction
|
||||
" gets the line number of the root node
|
||||
function! s:UI.getRootLineNum()
|
||||
let rootLine = 1
|
||||
while getline(rootLine) !~# '^\(/\|<\)'
|
||||
while rootLine <= line('$') && getline(rootLine) !~# '^\(/\|<\)'
|
||||
let rootLine = rootLine + 1
|
||||
endwhile
|
||||
return rootLine
|
||||
|
||||
Reference in New Issue
Block a user