From 416825d48359b0903cc12dd0697a4fab20309226 Mon Sep 17 00:00:00 2001 From: Arsham Shirvani Date: Thu, 12 May 2022 01:31:08 +0100 Subject: [PATCH] fix(notes): fix previous/next commands Apparently the pattern means something, so I am using the type instead. --- lua/listish/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/listish/init.lua b/lua/listish/init.lua index 62649dc..31828bf 100644 --- a/lua/listish/init.lua +++ b/lua/listish/init.lua @@ -69,7 +69,7 @@ local function insert_list(items, is_local) --{{{ end end --}}} -local unique_id = "ADDED BY LISTISH PLUGIN" +local unique_id = "Z" ---Inserts the current position of the cursor in the qf/local list. -- @param note string @@ -81,7 +81,7 @@ local function insert_note_to_list(note, is_local) --{{{ lnum = location[1], col = location[2] + 1, text = note, - pattern = unique_id, + type = unique_id, } insert_list({ item }, is_local) end @@ -99,7 +99,7 @@ end local function filter_listish_items(cur_list) local new_list = {} for _, item in ipairs(cur_list) do - if item.pattern ~= unique_id then + if item.type ~= unique_id then table.insert(new_list, item) end end