hadronized / hop.nvim

Neovim motions on speed!
Other
2.48k stars 138 forks source link

Doesn't work for the last line of the current window. #368

Open gaoqiangks opened 1 year ago

gaoqiangks commented 1 year ago

For example, when I have a very long line, which is not completely displayed on the current window, the plugin would omit this line. In the source file "window.lua", l.11, I think the "+1" should be added to the bot_line.

local line_of_file=vim.fn.line('$') local bot_line = win_info.botline if bot_line < line_of_file then bot_line=bot_line+1 end

Or at least, there should be an option to config this.