Michael Grant
6898e26a7a
Fix bug with utf-8 extended characters not respecting visible range.
2026-02-24 01:19:24 +00:00
Michael Grant
e2cf40ef99
Fix crash cause by not having a wp pointer in tty.c.
2026-02-23 08:08:31 +00:00
Michael Grant
96515c9f47
Merge branch 'master' into floating_panes
2026-02-18 09:28:38 +00:00
Thomas Adam
4cc3de4f84
Merge branch 'obsd-master'
2026-02-17 08:51:05 +00:00
nicm
fedd4440f0
Reuse extended entry when clearing RGB cell, to prevent memory growth
...
when cells are repeatedly cleared (they are only compacted when scrolled
off screen). From Michael K Darling in GitHub issue 4862.
2026-02-17 07:42:58 +00:00
nicm
55cedc24fa
Format layout change string once per window in control notify, from
...
Conor Taylor in GitHub issue 4848.
2026-02-16 08:45:38 +00:00
nicm
c9162837a0
Pull format allocation outside of loop for control subs, from Conor
...
Taylor in GitHub issue 4848.
2026-02-16 08:42:57 +00:00
nicm
f218463976
grid_peek_cell can return NULL, so check for it. From Conor Taylor in
...
GitHub issue 4848.
2026-02-16 08:02:04 +00:00
nicm
1f0c54f7ea
Initialize bufname, reported by Mark Kelly.
2026-02-15 17:43:26 +00:00
Thomas Adam
d3522c328c
Merge branch 'obsd-master'
2026-02-12 11:10:01 +00:00
Michael Grant
96e18faa93
Merge branch 'master' into floating_panes
2026-02-11 09:40:21 +00:00
Michael Grant
476c6e89ad
Check the overlay visible ranges when we have a tty and check the panes visible ranges when we have a wp. Overlays checked at tty level (for most part) and pane overlays checked at screen level where possible to keep separation of abstraction relatively clean.
2026-02-11 09:30:48 +00:00
nicm
7e50eb0e83
Make paste_get_top return a copy of the buffer name which is more
...
sensible and avoids a double free pointed out by DongHan Kim.
2026-02-11 08:30:37 +00:00
nicm
5b455abecc
Do not write before buffer when parsing empty clipboard or palette
...
replies, or try to allocate zero bytes with an empty clipboard sequence.
Reported by DongHan Kim.
2026-02-11 08:23:21 +00:00
nicm
7d41761e84
Fix clients_calculate_size for manual type when window is NULL. From
...
Elias Oenal in GitHub issue 4849.
2026-02-10 10:02:11 +00:00
nicm
25f6d8b1e9
Implement some obvious missing sort orders, from Dane Jensen in GitHub
...
issue 4813.
2026-02-10 09:55:53 +00:00
nicm
5a33616e65
Check for no window when updating clients, GitHub issue 4851.
2026-02-10 09:00:30 +00:00
nicm
1cf17b06ae
Batch printable output in control mode, from Conor Taylor in GitHub issue 4848.
2026-02-10 08:40:03 +00:00
nicm
aa03706ed0
Remove redundant call to tty_attributes, from Conor Taylor in GitHub
...
issue 4848.
2026-02-10 08:34:43 +00:00
nicm
d8794e2b30
Check log level before log_debug in tty_draw_line, from Conor Taylor in
...
GitHub issue 4848.
2026-02-10 08:31:45 +00:00
nicm
b7939eb266
Don't call event_add again if the event is already pending, from Conor
...
Taylor in GitHub issue 4848.
2026-02-10 08:30:21 +00:00
nicm
19b9a34c48
Only loop over clients if table actually found, from Conor Taylor in
...
GitHub issue 4848.
2026-02-10 08:28:53 +00:00
nicm
f016e08153
Fix wrong TAILQ member in input_cancel_requests from Conor Taylor in
...
GitHub issue 4848.
2026-02-10 08:27:17 +00:00
nicm
7b1c503086
Clear search counts when clearing marks in case of repeated search,
...
reported by Daniel Pereira in GitHub issue 4817.
2026-02-06 10:28:42 +00:00
nicm
5865001e4a
Also check PANE_STATUSREADY for pane_dead format to match
...
pane_dead_status. GitHub issue 4841 from Joshua Pollack.
2026-02-06 10:23:26 +00:00
nicm
62944da74b
Make OSC 52 work in popups, from gogongxt at 163 dot com in GitHub issue
...
4797.
2026-02-03 09:07:44 +00:00
nicm
588013bb44
Refresh copy mode when style changes, from Josh Cooper in GitHub issue 4830.
2026-02-03 08:53:58 +00:00
Thomas Adam
615c27c117
Merge branch 'obsd-master'
2026-02-02 19:06:25 +00:00
nicm
3c3d9ce3a9
Break sorting out into a common file so formats and modes use the same
...
code. Also add -O for sorting to the list commands. From Dane Jensen in
GitHub issue 4813.
2026-02-02 10:08:30 +00:00
Michael Grant
b46a96d454
Second try with static visual_ranges using calloc.
2026-01-29 14:34:18 +00:00
Michael Grant
f67cf7d053
Return static range as last resort.
2026-01-29 11:46:21 +00:00
nicm
66011fe48b
Do not treat cells as empty unless the background colour stays the same.
...
Fixes invisible clock in clock mode, reported by tb@.
2026-01-29 09:08:19 +00:00
Nicholas Marriott
2ad0f4a9e7
Merge branch 'master' into floating_panes
2026-01-29 08:43:41 +00:00
Thomas Adam
d7f59eccaf
Merge branch 'obsd-master'
2026-01-28 17:25:42 +00:00
Michael Grant
1ec9ca497b
Merge with visible_ranges banch. Convert visible_ranges to new style.
2026-01-28 15:26:00 +00:00
Thomas Adam
e652213855
Merge branch 'obsd-master'
2026-01-23 10:50:55 +00:00
nicm
f70150a663
Replace overlay_ranges with visible_ranges which can hold more than
...
three ranges (will be needed for floating panes); move the visible
ranges checks outside of tty_draw_line and rewrite it to fix issues with
partially-obscured wide characters. With Michael Grant.
2026-01-23 10:45:53 +00:00
Michael Grant
dd5d0f4f0c
Merge master.
2026-01-23 09:29:39 +00:00
Nicholas Marriott
fe52f76913
Fiddle with some more warnings.
2026-01-22 15:02:42 +00:00
Nicholas Marriott
0d9c3c895c
Stick the pragmas outside the function (make GCC 4 happier) and under __GNUC__.
2026-01-22 14:29:29 +00:00
Nicholas Marriott
6525bb7cef
Line length/style nits.
2026-01-22 14:16:39 +00:00
Michael Grant
0790e74f84
Fix strftime warning in gcc.
2026-01-22 14:11:00 +00:00
nicm
195a9cfd88
When history-limit is changed, apply to existing panes, not just new
...
ones. GitHub issue 4705.
2026-01-22 08:55:01 +00:00
nicm
ecbf8d76d0
Reevaluate menu and popup styles on each draw to allow them to change
...
when options change, from Josh Cooper in GitHub issues 4828 and 4829.
2026-01-22 07:52:24 +00:00
nicm
818745a605
Set PANE_STYLECHANGED when user options change, from Josh Cooper in
...
GitHub issue 4825.
2026-01-22 07:42:30 +00:00
nicm
26aacd0e32
Handle theme keys earlier so they are processed even if a popup is open.
...
From Josh Cooper in GitHub issue 4827.
2026-01-22 07:39:35 +00:00
Nicholas Marriott
d1a6ce8e7f
Associate each visible_ranges with some other object (tty, popup_data, etc) so
...
it is easier to keep track of its lifecycle, but still avoid allocating for
each use.
2026-01-21 21:29:56 +00:00
Michael Grant
b22537e8a4
Conflict resolve.
2026-01-21 19:36:05 +00:00
Michael Grant
a25c14d472
Change overlay_ranges into visible_ranges.
2026-01-21 19:34:19 +00:00
Nicholas Marriott
7730d38339
Skip correct width when moving to next position.
2026-01-21 15:58:11 +00:00