nicm
7bd9cdf6fc
Show error if user option doesn't exist, GitHub issue 2938.
2021-10-21 08:23:48 +00: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
nicm
f26b8c57ff
Same as -N, don't send if 0 arguments and -R.
2021-10-19 12:51:43 +00: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
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
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
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
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
nicm
b8581ec80e
Make positions hidden by overlays range-based rather than character-based,
...
from Anindya Mukherjee.
2021-10-11 13:27:50 +00: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
jmc
7800a431ea
remove extra .El;
2021-10-08 14:14:31 +00: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
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
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
nicm
da05d05824
Fix some warnings.
2021-10-05 20:15:16 +00:00
nicm
e06a4e041c
Set mouse_x and mouse_y on the status line, GitHub issue 2913.
2021-10-05 17:23:13 +00: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
nicm
9b1fdb291e
Separate "very visible" flag from blinking flag, it should not affect
...
DECSCUSR. GitHub issue 2891.
2021-10-05 12:46:02 +00:00
nicm
3d5a02bf45
Do not try to use NULL time values.
2021-10-05 12:45:02 +00:00
nicm
68c8905859
Do not call recalculate_sizes while clearing a client session because it
...
needs to loop over the clients, instead do it after all clients are
cleared. Fixes a crash reported by martijn@ when a session with multiple
clients attached is destroyed, but there are other sessions so tmux does
not entirely exit. ok deraadt
2021-09-27 19:12:00 +00:00
nicm
257e9ba69a
Fix command prompt with multiple prompts (add the result onto the list
...
again as we go along). ok deraadt
2021-09-22 15:21:44 +00:00
nicm
c4b969ca62
Do not destroy sessions twice, GitHub issue 2889.
2021-09-17 07:20:49 +00:00
nicm
3c3d371f99
Fix run-shell -d with no command, GitHub issue 2885.
2021-09-16 06:39:22 +00:00
nicm
a19cac5c46
For the moment, restore if-shell and run-shell to parsing at the last
...
moment (when the shell command completes) rather than when first
invoked, GitHub issue 2872.
2021-09-15 07:38:30 +00:00
nicm
e6b40cb339
Do fatal/fatalx a different way so the compiler trick to avoid warnings
...
becomes unnecessary, prompted by theo.
2021-09-10 15:03:18 +00:00
nicm
33ac7a346e
Get rid of the last two warnings by turning them off around the problem
...
statements, if the compiler supports it.
2021-09-10 14:22:24 +00:00
nicm
5cdc1bdd32
Disable aliases inside aliases for the moment.
2021-09-10 08:52:46 +00:00
nicm
768fb9080f
Keep -? as usage.
2021-09-09 21:55:03 +00:00
nicm
a0b39dba31
Turn on both button and all mouse modes for menus since some terminals
...
only support the former.
2021-09-09 19:37:17 +00:00
nicm
34312fd6ee
Expand argument to run-shell again.
2021-09-09 13:38:32 +00:00
nicm
5a4b2fd68c
Fix parsing of aliases again (GitHub issue 2842), also make argument
...
parsing a bit simpler and fix the names of some client flags.
2021-09-09 06:57:48 +00:00
nicm
329c2c2a91
Change copying arguments to that flags without arguments are inserted
...
correctly and empty arguments lists do not crash. Fixes crash reported
by & ok mpi@.
2021-09-02 07:11:03 +00:00
nicm
daec63e5e6
Replace %% in command lists (by copying them) for template arguments ,
...
this means they can be used with {} as well. Also make argument
processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-27 17:25:55 +00:00
nicm
fd756a150b
Allow control mode clients to set a hard limit on the window width and
...
height, GitHub issue 2594.
2021-08-27 17:15:57 +00:00
nicm
24636be42b
Improve some logging.
2021-08-25 10:18:01 +00:00
nicm
f4f8d3b5ed
Ignore client creating session when working out size if it is a control
...
client.
2021-08-25 10:15:15 +00:00
nicm
a3c6057b51
bind-key needs to allow commands for any argument for the moment.
2021-08-25 09:18:08 +00:00
nicm
03d173cbd8
Validate command argument types (string or command list) and give more
...
useful error messages.
2021-08-25 08:51:55 +00:00
nicm
c6d6af4903
setupterm needs char * not const char * on some platforms.
2021-08-25 07:37:20 +00:00
nicm
a252fadf8a
Fix up some printflike attributes.
2021-08-25 07:09:30 +00:00
nicm
78da5a3756
Start inputs as NULL so not freeing random stack garbage, GitHub issue 2852.
2021-08-25 06:36:05 +00:00
nicm
841ce74b43
args_make_commands_now needs to take an extra reference to the returned
...
command list since it will be freed already.
2021-08-23 17:05:43 +00:00
nicm
210e71edf3
Move command argument parsing common functions and don't bother to parse
...
again if given a command rather than a string.
2021-08-23 12:33:55 +00:00
nicm
03b83a5a34
Key bindings steal a reference to the command instead of adding their
...
own, it was correct not to add a reference when parsing, but the
bind-key then needs to add one.
2021-08-23 11:48:21 +00:00
nicm
1f0c0914c7
Revert one of previous, for some reason it is being freed.
2021-08-23 11:08:26 +00:00
nicm
4a753dbefc
Fix a few memory leaks.
2021-08-23 11:04:21 +00:00