We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c2486 commit 743d921Copy full SHA for 743d921
lua/orgmode/parser/files.lua
@@ -66,14 +66,19 @@ function Files.reload(file, callback)
66
return Files.load(callback)
67
end
68
69
+ local onfinish = function()
70
+ if callback then
71
+ callback()
72
+ end
73
+ Files._build_tags()
74
75
+
76
local old_file = Files.orgfiles[file]
77
local new_file = Files.get(file)
78
79
if old_file then
80
Files._check_source_blocks(old_file, new_file)
- if callback then
- callback()
- end
81
+ onfinish()
82
return new_file
83
84
@@ -83,10 +88,7 @@ function Files.reload(file, callback)
88
Files._check_source_blocks(old_file, orgfile)
89
85
90
Files.loaded = true
86
87
- Files._build_tags()
91
92
return orgfile
93
end)
94
0 commit comments