Browse Source

Mark `linewrapping` `open_files` table as weak

We weren't correctly garbage-collecting `Doc`s, so we had `Highlighter`s 
stay alive over their due time.
pull/1347/merge
Guldoman 2 years ago
parent
commit
bc2f22e9e7
No known key found for this signature in database GPG Key ID: EA928C8BDA1A8825
  1. 2
      data/plugins/linewrapping.lua

2
data/plugins/linewrapping.lua

@ -310,7 +310,7 @@ local function get_line_col_from_index_and_x(docview, idx, x)
end
local open_files = {}
local open_files = setmetatable({ }, { __mode = "k" })
local old_doc_insert = Doc.raw_insert
function Doc:raw_insert(line, col, text, undo_stack, time)

Loading…
Cancel
Save