stevearc / qf_helper.nvim

A collection of improvements for the quickfix buffer
MIT License
98 stars 1 forks source link

fix: avoid exception when calling :Reject on last element #11

Closed mivort closed 10 months ago

mivort commented 10 months ago

This commit adds array length check gate before setting the cursor position on list entry removal with :Reject command. It allows to avoid the following exception which gets produced otherwise:

E5108: Error executing lua .../qf_helper.nvim/lua/qf_helper.lua:180: Cursor position outside buffer
stevearc commented 10 months ago

LGTM thanks!