Change relative time for now to only work in the past and not show a

sign which is more useful. Also tidy up some minor style nits.
This commit is contained in:
nicm
2026-06-13 08:59:52 +00:00
parent b3deb9ec86
commit 34a6a9d3a1
5 changed files with 22 additions and 28 deletions

View File

@@ -5102,14 +5102,10 @@ window_copy_set_line_numbers(struct window_pane *wp, int enabled)
struct window_mode_entry *wme = TAILQ_FIRST(&wp->modes);
struct window_copy_mode_data *data;
if (wme == NULL)
return;
if (wme->mode != &window_copy_mode)
if (wme == NULL || wme->mode != &window_copy_mode)
return;
data = wme->data;
if (data == NULL)
return;
if (data->line_numbers == enabled)
if (data == NULL || data->line_numbers == enabled)
return;
data->line_numbers = enabled;
window_copy_redraw_screen(wme);