yegappan / mru

Most Recently Used (MRU) Vim Plugin
Other
259 stars 48 forks source link

Bug: buffers are not added to the buffer list when reopened #45

Closed mroavi closed 3 years ago

mroavi commented 3 years ago

The first time a buffer is opened with MRU, it is added to the buffer list. If, however, the buffer is deleted and reopened at a later point again with MRU, it does not get added to the buffer list. I find this behavior buggy. Let me know if you agree.

Here is a gif that illustrates the above:

Peek 2021-08-03 00-54_mru_buffer_list_bug

I am running NVIM v0.5.0.

yegappan commented 3 years ago

Thanks for reporting the issue. I have pushed PR cf9b8ba6944522ff1b8eaa1ef7582830e1711432 fix this issue. Let me know, if you see any other problem with this.

mroavi commented 3 years ago

I pulled your change. The issue does not seem to be solved. I still see the same behavior shown in the GIF above.

yegappan commented 3 years ago

With the latest version of the plugin, I am not able to reproduce the problem using the steps shown in the GIF. Can you check the mru.vim plugin file to make sure the changes are present?

mroavi commented 3 years ago

I verified that the changes are present:

commit cf9b8ba6944522ff1b8eaa1ef7582830e1711432
  Author: Yegappan Lakshmanan <yegappan@yahoo.com>
  Date:   10 hours ago

EDIT: After pulling the changes with packer, the file had local modifications as if I had deleted the changes that were pulled in. I have no idea why this happened. I confirm that the issue has been fixed!! Thanks!!