Commit Graph

185 Commits

Author SHA1 Message Date
Nicholas Marriott
569a0ef6ba Change some comments. 2026-06-18 16:43:55 +01:00
Nicholas Marriott
483e5f32ce Make screen_redraw_make_scene make sense. 2026-06-18 16:34:41 +01:00
Nicholas Marriott
1e12fef94d Rename redraw_cell to redraw_get_build_cell. 2026-06-18 16:07:57 +01:00
Nicholas Marriott
de9d2fe1e0 Rename screen_redraw_ to redraw_. 2026-06-18 16:06:34 +01:00
Nicholas Marriott
9288c7d0cb Rename CELL_* and some other functions. 2026-06-18 15:50:29 +01:00
Nicholas Marriott
488472dbef Remove duplicate check. 2026-06-17 20:52:08 +01:00
Nicholas Marriott
62a27248bd Rename a function. 2026-06-17 18:09:50 +01:00
Nicholas Marriott
618d4186f0 Fix position of pane status line. 2026-06-17 00:03:41 +01:00
Nicholas Marriott
1ab8bde0b1 Spacing nit. 2026-06-16 23:54:18 +01:00
Nicholas Marriott
2ce8ff9e6d Some trivial optimizations. 2026-06-16 23:31:52 +01:00
Nicholas Marriott
9212ecea84 Add some logging. 2026-06-16 23:17:28 +01:00
Nicholas Marriott
b7fa115aab Cache scene for client and invalidate when changes. 2026-06-16 23:04:57 +01:00
Nicholas Marriott
2af751d78d Use iterator to avoid walking all spans every time. 2026-06-16 22:44:43 +01:00
Nicholas Marriott
476724985b Fix a couple of bugs. 2026-06-16 22:26:01 +01:00
Nicholas Marriott
6c417be840 Final bits of redraw. 2026-06-16 21:42:35 +01:00
Nicholas Marriott
37f36a28b3 Add a context for common bits. 2026-06-16 19:21:37 +01:00
Nicholas Marriott
694e39ff43 Can work out active pane itself. 2026-06-16 18:43:57 +01:00
Nicholas Marriott
fe03d50042 Draw pane borders. 2026-06-16 18:27:48 +01:00
Nicholas Marriott
cd755fa4b2 Add scrollbar draw. 2026-06-16 17:02:44 +01:00
Nicholas Marriott
0f571a7ed5 Start of drawing code. 2026-06-16 16:54:17 +01:00
Nicholas Marriott
103cd8d983 Add scene generation parts of new screen redraw. 2026-06-16 15:21:15 +01:00
Thomas Adam
6cb2233cd2 Merge branch 'obsd-master' 2026-06-16 12:55:00 +01:00
nicm
9ad75e1dc3 Rename the visible ranges functions since they really relate to windows
and put them nto a new file.
2026-06-16 10:47:35 +00:00
Thomas Adam
1d026b921c Merge branch 'obsd-master' 2026-06-16 10:15:14 +01:00
nicm
d2c23773ff Fix missing border when drawing floating panes. From Michael Grant. 2026-06-16 08:53:14 +00:00
Thomas Adam
408e9f1481 Merge branch 'obsd-master' 2026-06-15 23:00:06 +01:00
nicm
482e254a49 Rename window_pane_visible to match other functions, from Dane Jensen. 2026-06-15 21:47:01 +00:00
Thomas Adam
9031f59f7b Merge branch 'obsd-master' 2026-06-15 19:00:06 +01:00
nicm
b86bd1fcd0 Add pane-border-lines none like popups (-B to new-pane). 2026-06-15 17:34:25 +00:00
Thomas Adam
13de7cafb2 Merge branch 'obsd-master' 2026-06-15 13:30:08 +01:00
nicm
057b688fc7 Tidy up screen_redraw_get_visible_ranges by using a couple of
temporaries for start and end of range.
2026-06-15 12:07:49 +00:00
Thomas Adam
9fcd5ce03d Merge branch 'obsd-master' 2026-06-15 10:30:05 +01:00
nicm
a41e6e2ed2 Add -B to new-pane to select the floating pane border. 2026-06-15 09:21:40 +00:00
Thomas Adam
e54855ef88 Merge branch 'obsd-master' 2026-06-15 09:30:05 +01:00
nicm
7a18fa281d Add top-floating and bottom-floating to pane-border-status to show
status line only on floating panes.
2026-06-15 08:16:05 +00:00
Thomas Adam
748dab2f38 Merge branch 'obsd-master' 2026-06-14 22:15:05 +01:00
nicm
6e0e343f23 Fix various errors in redrawing:
- Fix the active pane colour when only two panes and scrollbars enabled.

- Clip left and right scrollbars the same for floating panes.

- Do not subtract scrollbar width twice when working out width of status
  line.

- Check if a character is inside a visible range correctly (do not
  include the next position outside the range).
2026-06-14 20:53:20 +00:00
Thomas Adam
fb527fa7db Merge branch 'obsd-master' 2026-06-14 21:00:05 +01:00
nicm
87976aa48e Add a helper to get pane-border-status for a window for some other
changes to come.
2026-06-14 19:31:37 +00:00
Thomas Adam
cd26f29fb8 Merge branch 'obsd-master' 2026-06-10 16:15:11 +01:00
nicm
c019b3dad9 Use correct size when calculating status line right trim. GitHub issue
5098 from Aung Myo Kyaw.
2026-06-10 14:51:20 +00:00
Thomas Adam
da31d94c2a Merge branch 'obsd-master' 2026-06-10 08:50:17 +01:00
nicm
d533d7c97c Add a context for cell/palette/hyperlinks when drawing to tty to avoid
passing so much in parameters.
2026-06-09 21:22:22 +00:00
Thomas Adam
e89f02bd8f Merge branch 'obsd-master' 2026-06-02 09:30:06 +01:00
nicm
ae6a749d3a Move the PANE_FLOATING flag into the layout cell and add an accessor.
From Dane Jensen.
2026-06-02 08:13:50 +00:00
Thomas Adam
0759030ee8 Merge branch 'obsd-master' 2026-06-02 08:30:06 +01:00
nicm
35f4c8b333 Fix border colour bug in the floating panes branch where inactive
floating pane borders incorrectly use the active colour at intersections
with tiled pane borders. From Michael Grant.
2026-06-02 07:11:49 +00:00
Thomas Adam
2f3ef88dbf Merge branch 'obsd-master' 2026-06-01 21:15:06 +01:00
nicm
3269833caa Fix vertical position of scrollbar having wrong vertical offset when
status-position top, from Michael Grant.
2026-06-01 20:00:25 +00:00
Thomas Adam
3f3d65e452 Merge branch 'obsd-master' 2026-05-31 22:30:06 +01:00