hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

Fix regression of #267 (Error: col val outside range)

Open spamwax opened this issue 1 year ago • 3 comments

Fix regression of phaazon/hop.nvim#267 caused by pull#315

  • opts.col passed to nvim_buf_set_extmark() expects it to be 0-indexed. phaazon/hop.nvim#315 causes an empty line to retun 1 for cursor's column. This PR checks if the current line is empty and sets the correct column in 'contexts' that'll be used later in nvim_buf_set_extmark() in set_unmatched_lines()

spamwax avatar Nov 10 '22 02:11 spamwax