Skip to content

Commit 39989fc

Browse files
committed
fix(#1731): create-file refreshes synchronously
1 parent 8b44075 commit 39989fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree/actions/fs/create-file.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local utils = require "nvim-tree.utils"
22
local events = require "nvim-tree.events"
33
local lib = require "nvim-tree.lib"
44
local core = require "nvim-tree.core"
5-
local watch = require "nvim-tree.explorer.watch"
5+
local reload = require "nvim-tree.explorer.reload"
66
local notify = require "nvim-tree.notify"
77

88
local M = {}
@@ -111,7 +111,7 @@ function M.fn(node)
111111
-- synchronous call required so that we may focus the file now
112112
node = node.nodes ~= nil and node or node.parent
113113
if node then
114-
watch.refresh_node(node)
114+
reload.refresh_node(node)
115115
end
116116
end
117117
-- TODO #1731 #1716 this gets upset by watcher add new file to linked directories above

0 commit comments

Comments
 (0)