Normalize to project dir in treeview open

When left-clicking in a TreeView file we use now
core.normalize_to_project_dir to normalize correctly
the file name.
This commit is contained in:
Francesco Abbate 2021-09-19 23:50:50 +02:00
parent d067cc8577
commit 34983668d8
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ function TreeView:on_mouse_pressed(button, x, y, clicks)
end
else
core.try(function()
local doc_filename = common.relative_path(core.project_dir, hovered_item.abs_filename)
local doc_filename = core.normalize_to_project_dir(hovered_item.abs_filename)
core.root_view:open_doc(core.open_doc(doc_filename))
end)
end