From a7fe7baf5ff516ca0b3040d7d82af19ccce1e93e Mon Sep 17 00:00:00 2001 From: hedy Date: Fri, 24 Nov 2023 17:13:44 +0800 Subject: [PATCH] fix(markdown): Revert a change from a previous commit --- lua/outline/providers/markdown.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/outline/providers/markdown.lua b/lua/outline/providers/markdown.lua index 876b331..2b40d28 100644 --- a/lua/outline/providers/markdown.lua +++ b/lua/outline/providers/markdown.lua @@ -109,6 +109,13 @@ function M.handle_markdown() ::nextline:: end + for i = 2, max_level do + if level_symbols[i] ~= nil then + level_symbols[i].selectionRange['end'].line = #lines + level_symbols[i].range['end'].line = #lines + end + end + return level_symbols[1].children end