Kim A. Brandt

Results 24 comments of Kim A. Brandt

This issue seems to be related to PR #573. Duplicate items are turned into blank-lines (`nil`-items), which then trigger the issue, that's addressed in the PR.

@ThePrimeagen Does that go for empty lines also? In which case there would only be a single blank line left; or none, if they're not allowed?!

This reverts some changes, to make it more minimal, which also lets the tests pass now. This duplicates the commit https://github.com/rusnasonov/harpoon/commit/b8cc0e0ffb26ab7d2deba340d39e156c6fd484a9 and https://github.com/ThePrimeagen/harpoon/issues/565 issue.

There still seems to be an issue, when there are many blank items!? Some of them are just removed!? But, non-nil items seem to get restored alright!?

I see the same error, when trying to open a file with associated swap-file. When opening the first item in a list: `:lua require("harpoon"):list():select(1)`, I get the following message and...

The underlying issue seems to be in (n)vim!? [Bram is pointing out a workaround](https://github.com/vim/vim/issues/8333)!? So, maybe just ignore the error!? ```diff diff --git a/lua/harpoon/config.lua b/lua/harpoon/config.lua index a759297..d77c880 100644 --- a/lua/harpoon/config.lua...

This change worked for me, too: ```diff diff --git a/lua/harpoon/config.lua b/lua/harpoon/config.lua index a759297..262845f 100644 --- a/lua/harpoon/config.lua +++ b/lua/harpoon/config.lua @@ -108,6 +108,7 @@ function M.get_default_config() bufnr = vim.fn.bufnr(list_item.value, true) end if...

> ... > It works but certain buffers opened with harpoon can't be closed anymore, it's very weird. How do you close your buffers? Does it work with `:bd` `:bw`?

> > ... > > How do you close your buffers? Does it work with `:bd` `:bw`? > > I tried with `x` keybinding, `:bd`, and `:bw`, none work. I...