File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ function Marks:navigate(up)
200
200
201
201
Iterator .builder (self .explorer .nodes )
202
202
:recursor (function (n )
203
- return n .open and n .nodes
203
+ local dir = n :as (DirectoryNode )
204
+ return dir and dir .open and dir .nodes
204
205
end )
205
206
:applier (function (n )
206
207
if n .absolute_path == node .absolute_path then
@@ -263,7 +264,7 @@ function Marks:navigate_select()
263
264
return
264
265
end
265
266
local node = self .marks [choice ]
266
- if node and not node . nodes and not utils .get_win_buf_from_path (node .absolute_path ) then
267
+ if node and not node : is ( DirectoryNode ) and not utils .get_win_buf_from_path (node .absolute_path ) then
267
268
open_file .fn (" edit" , node .absolute_path )
268
269
elseif node then
269
270
utils .focus_file (node .absolute_path )
You can’t perform that action at this time.
0 commit comments