Commit Graph

9967 Commits

Author SHA1 Message Date
nicm
5745bd27fd Do not allow inline styles to replace mode-style for the selected item,
from Alexis Hildebrandt in GitHub issue 2946.
2021-10-26 12:22:23 +00:00
Thomas Adam
6f46f71d58 Merge branch 'obsd-master' into master 2021-10-26 00:01:13 +01:00
nicm
197a116f5a Add a way to force a colour to RGB and a format to display it. 2021-10-25 21:21:16 +00:00
nicm
eb82ad5216 Missing Pp, from Alexis Hildebrandt. 2021-10-25 20:32:42 +00:00
Thomas Adam
3934d9b24d Merge branch 'obsd-master' into master 2021-10-25 12:01:11 +01:00
nicm
ef46eb91a5 Add -s and -S to display-popup to set popup and border style, from
Alexis Hildebrandt in GitHub issue 2931.
2021-10-25 09:38:36 +00:00
nicm
0cca695d6e Instead of setting the popup default colours in the draw callback, set
it up in popup_display and follow the same routine as panes in the draw
and init_ctx callbacks - use the palette if the option value is default.
Allows application-set fg and bg to work in panes again.
2021-10-25 09:22:17 +00:00
Thomas Adam
619d934d7b Merge branch 'obsd-master' into master 2021-10-25 00:01:11 +01:00
deraadt
9b4148b12c For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert
2021-10-24 21:24:17 +00:00
Thomas Adam
5071b82c77 Merge branch 'obsd-master' into master 2021-10-22 20:01:11 +01:00
nicm
8235957eaa Remove key and trim text if menu cannot fit in available space, based on
a change from Alexis Hildebrandt.
2021-10-22 17:12:50 +00:00
Thomas Adam
be2413292f Merge branch 'obsd-master' into master 2021-10-21 12:01:10 +01:00
nicm
289ac55ebd Correctly adjust the end pointer for a two character terminator before
decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
2021-10-21 08:36:51 +00:00
nicm
7bd9cdf6fc Show error if user option doesn't exist, GitHub issue 2938. 2021-10-21 08:23:48 +00:00
Thomas Adam
1bf2f811ea Merge branch 'obsd-master' into master 2021-10-20 14:01:15 +01:00
nicm
acba07629e Remove a TODO comment. 2021-10-20 09:52:27 +00:00
nicm
8a9bfd0cdd Add -T to set a popup title, from Alexis Hildebrandt in GitHub issue 2941. 2021-10-20 09:50:40 +00:00
Thomas Adam
65bb36d6bd Merge branch 'obsd-master' into master 2021-10-19 16:01:12 +01:00
nicm
f26b8c57ff Same as -N, don't send if 0 arguments and -R. 2021-10-19 12:51:43 +00:00
Thomas Adam
9e986d6a96 Merge branch 'obsd-master' into master 2021-10-18 12:01:12 +01:00
nicm
51ff77d47b Fix menu width containing disabled items, from Alexis Hildebrandt in
GitHub issue 2935.
2021-10-18 09:48:35 +00:00
nicm
2c188ee0c5 Spacing fixes from Alexis Hildebrandt. 2021-10-18 09:15:56 +00:00
nicm
cc27a43c40 Remove duplicate options, spotted by Ricky Cintron. 2021-10-18 09:09:46 +00:00
Thomas Adam
c57df2bb73 Merge branch 'obsd-master' into master 2021-10-15 14:01:13 +01:00
nicm
537302f2c1 Do not send any key if -N flag is given even if no other arguments,
fixes problem with repeat in copy mode reported by tb@.
2021-10-15 10:39:22 +00:00
Thomas Adam
264fe7fc2a Merge branch 'obsd-master' into master 2021-10-14 16:01:20 +01:00
nicm
add20637f2 Add popup-border-lines option to set popup line style, from Alexis
Hildebrandt, GitHub issue 2930.
2021-10-14 13:19:01 +00:00
Thomas Adam
ee9885a40c Merge branch 'obsd-master' into master 2021-10-14 12:01:12 +01:00
nicm
d0ab1a837a When checking ranges in tty_cmd_cells, cannot use the tty cursor
position and tty_cursor because it may be at the final invisible cursor
position on automargin terminals. The text to be drawn is confined to
the pane, so use the pane cursor position for the checks instead. Fix
from Anindya Mukherjee, redraw problem reported by naddy@.
2021-10-14 09:54:51 +00:00
Thomas Adam
fb23df679b Merge branch 'obsd-master' into master 2021-10-13 14:01:16 +01:00
nicm
837ca176d1 Add popup-style and popup-border-style options, from Alexis Hildebrandt
in GitHub issue 2927.
2021-10-13 09:28:36 +00:00
Thomas Adam
aff2a473ec Merge branch 'obsd-master' into master 2021-10-11 16:01:13 +01:00
nicm
b8581ec80e Make positions hidden by overlays range-based rather than character-based,
from Anindya Mukherjee.
2021-10-11 13:27:50 +00:00
Thomas Adam
af82106fae Merge branch 'obsd-master' into master 2021-10-11 14:01:13 +01:00
nicm
759efe1b33 Add -e flag to set environment for popup, from Alexis Hildebrandt in
GitHub issue 2924.
2021-10-11 10:55:30 +00:00
Thomas Adam
7ca863c5af Merge branch 'obsd-master' into master 2021-10-08 18:01:11 +01:00
jmc
7800a431ea remove extra .El; 2021-10-08 14:14:31 +00:00
Thomas Adam
bf0f694f91 Merge branch 'obsd-master' into master 2021-10-08 10:01:12 +01:00
kn
50a77f4417 Add tags for command aliases
Make ":tnew" work, i.e. bring the reader to the definition of the full
"new-window" command aliased as "new" just like ":tnew-window" would.

OK nicm
2021-10-08 06:37:39 +00:00
Thomas Adam
fed7b29c7e Merge branch 'obsd-master' into master 2021-10-07 10:01:10 +01:00
nicm
5f63181ed5 Add a missing El, from Alexis Hildebrandt in GitHub issue 2918. 2021-10-07 07:53:31 +00:00
nicm
9574496333 Handle splitw -I correctly when used from an attached client, GitHub
issue 2917.
2021-10-07 07:52:13 +00:00
Thomas Adam
5374417428 Merge branch 'obsd-master' into master 2021-10-06 12:01:10 +01:00
nicm
5359b76619 Do not reset cursor to default if it has never been changed, fixes
problem reported by naddy.
2021-10-06 10:33:12 +00:00
Thomas Adam
c8802c776a Merge branch 'obsd-master' into master 2021-10-06 00:01:12 +01:00
nicm
da05d05824 Fix some warnings. 2021-10-05 20:15:16 +00:00
Thomas Adam
d8996a1c1d Merge branch 'obsd-master' into master 2021-10-05 20:01:11 +01:00
nicm
e06a4e041c Set mouse_x and mouse_y on the status line, GitHub issue 2913. 2021-10-05 17:23:13 +00:00
Thomas Adam
479c9563c7 Merge branch 'obsd-master' into master 2021-10-05 16:01:13 +01:00
nicm
9f6164a05c Make send-keys without any arguments send the key it is bound to (if
any). GitHub issue 2904.
2021-10-05 12:49:37 +00:00