lnav
lnav copied to clipboard
lnav only uses the top half of the log view when tailing with time-column visible and word-wrap enabled
lnav version v0.13.0-rc2
Describe the bug
With /ui/views/log/time-column enabled (set to default) and visible, and word-wrap turned on, lnav only uses the top half of the log view when tailing the end of the current logs.
To Reproduce
- With a clean installation of lnav v0.13.0-rc2 and default configuration, open lnav on a log file that is actively being written to (I'm not sure if this is required to repro, but I haven't tried with an inactive log file).
- In lnav execute the command
:config /ui/views/log/time-column default. - Scroll all the way right in the log view, so that the "time-column" is visible on the left side of the log view.
- Enable word-wrap (either via command or hotkey ctrl+w on macOS).
- Jump to the bottom of the log (shift+g on macOS).
- Observe that new log entries are now always appended near the middle of the log view, with the bottom half of the log view completely unused.
You can make lnav once again use the bottom half of the log view in a few different ways:
- With log view selected, press left arrow once (effectively hiding the time-column).
- With log view selected, press up arrow once (effectively disabling the "tail").
- Disable word-wrap either with command or hotkey.
- Disable the time-column with command
:config /ui/views/log/time-column disabled.