File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,18 @@ function M.update()
108
108
end
109
109
110
110
for bufname , severity in pairs (buffer_severity ) do
111
- local bufpath = utils .canonical_path (bufname )
111
+ local bufpath = vim . fn . fnamemodify ( utils .canonical_path (bufname ), " :p " )
112
112
log .line (" diagnostics" , " bufpath '%s' severity %d" , bufpath , severity )
113
113
if 0 < severity and severity < 5 then
114
114
for line , node in pairs (nodes_by_line ) do
115
- local nodepath = utils .canonical_path (node .absolute_path )
115
+ local nodepath = vim . fn . fnamemodify ( utils .canonical_path (node .absolute_path ), " :p " )
116
116
log .line (" diagnostics" , " %d checking nodepath '%s'" , line , nodepath )
117
- if M .show_on_dirs and vim .startswith (bufpath , nodepath ) and (not node .open or M .show_on_open_dirs ) then
117
+ if
118
+ M .show_on_dirs
119
+ and node .nodes
120
+ and vim .startswith (bufpath , nodepath )
121
+ and (not node .open or M .show_on_open_dirs )
122
+ then
118
123
log .line (" diagnostics" , " matched fold node '%s'" , node .absolute_path )
119
124
node .diag_status = severity
120
125
add_sign (line , severity )
You can’t perform that action at this time.
0 commit comments