lnav icon indicating copy to clipboard operation
lnav copied to clipboard

cursor mode does not behave as expected when word-wrapping is enabled

Open z-traveler opened this issue 1 year ago • 1 comments

lnav version v0.12.2 is the latest

Describe the bug When I use cursor mode and enable word-wrapping, moving the cursor to the last line (by pressing the 'G' key twice), the cursor fails to update correctly when the log is refreshed and screen stop refresh.

To Reproduce Steps to reproduce the behavior:

  1. lnav l.log

  2. hotkey: ctrl-w, to enalbe wrod-wrapping
  3. double hotkey: G, to move to the last line

z-traveler avatar Sep 09 '24 08:09 z-traveler

To be precise, after the first line break logic occurs, the cursor updates to that line, and thereafter, the cursor will no longer update.

z-traveler avatar Sep 09 '24 08:09 z-traveler

I've pushed some changes related to this, can you try the nightly build attached to the following run and see if it works for you:

https://github.com/tstack/lnav/actions/runs/13220649190

Thanks

tstack avatar Feb 09 '25 01:02 tstack