History log of /openbsd-src/usr.bin/tmux/cmd-load-buffer.c (Results 1 – 25 of 65)
Revision Date Author Comments
# 1b09dd8d 09-Jun-2022 nicm <nicm@openbsd.org>

If an application gives the first parameter to OSC 52, validate and pass
on to outside terminal. GitHub issue 3192.


# a51dead1 21-Aug-2021 nicm <nicm@openbsd.org>

Add args parsing callback for some future work, currently unused.


# 1693b10b 20-Aug-2021 nicm <nicm@openbsd.org>

Hide struct args behind a couple of accessor functions.


# a1750446 04-Sep-2020 nicm <nicm@openbsd.org>

calloc cb data so the client is NULL.


# e4f0ed7f 02-Sep-2020 nicm <nicm@openbsd.org>

Add a -w flag to set- and load-buffer to send to clipboard using OSC 52.
GitHub issue 2363.


# 035dc73d 13-Apr-2020 nicm <nicm@openbsd.org>

Make client -c and -t handling common in cmd-queue.c and try to be
clearer about whether the client is the target client (must have a
session) or not.


# 040343ae 13-Apr-2020 nicm <nicm@openbsd.org>

Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
use more clearly defined and preparation for some future work).


# 90d7ba38 13-Apr-2020 nicm <nicm@openbsd.org>

Make struct cmd local to cmd.c and move it out of tmux.h.


# f4bc7c7a 12-Dec-2019 nicm <nicm@openbsd.org>

Rewrite the code for reading and writing files. Now, if the client is
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special fil

Rewrite the code for reading and writing files. Now, if the client is
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special files like
/dev/fd/X work (used by some shells). stdin, stdout and stderr and
control mode are now just special cases of the same mechanism. This will
also make it easier to use for other commands that read files such as
source-file.

show more ...


# 780ca620 18-Jun-2019 nicm <nicm@openbsd.org>

Add a cmdq_continue function rather than twiddling the flag directly.


# a32bfec9 13-Jun-2019 nicm <nicm@openbsd.org>

Use the right client when working out where to save or load the buffer,
reported by kn@.


# 04131cda 27-Aug-2018 nicm <nicm@openbsd.org>

Memory leaks, from Gang Fan in GitHub issue 1453.


# d8443b7b 31-Jul-2018 nicm <nicm@openbsd.org>

Do not leak path or use it after free.


# 980ca567 11-Jul-2018 nicm <nicm@openbsd.org>

Expand formats in load-buffer and save-buffer.


# f7679acb 15-Jan-2018 nicm <nicm@openbsd.org>

Some unused code, GitHub issue 1219.


# fb807b18 22-Apr-2017 nicm <nicm@openbsd.org>

Memory leaks, from David CARLIER.


# 527df7dd 14-Feb-2017 nicm <nicm@openbsd.org>

Make source-file look for files relative to the client working directory
(like load-buffer and save-buffer), from Chris Pickel. Also break the
where-is-this-file code out into its own function for lo

Make source-file look for files relative to the client working directory
(like load-buffer and save-buffer), from Chris Pickel. Also break the
where-is-this-file code out into its own function for loadb and saveb.

show more ...


# 07a4101d 06-Jan-2017 nicm <nicm@openbsd.org>

Nits found with clang.


# f9fb68b5 26-Oct-2016 nicm <nicm@openbsd.org>

Buffer name can be NULL, check before strdup().


# 68e0a7f2 16-Oct-2016 nicm <nicm@openbsd.org>

Mass rename struct cmd_q to struct cmdq_item and related.


# 765b9a58 16-Oct-2016 nicm <nicm@openbsd.org>

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command hap

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.

This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.

A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.

show more ...


# 7a61a8dd 14-Oct-2016 nicm <nicm@openbsd.org>

Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.


# dc1f0f5f 10-Oct-2016 nicm <nicm@openbsd.org>

Add static in cmd-* and fix a few other nits.


# b0cf51d7 05-Mar-2016 nicm <nicm@openbsd.org>

Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel.


# c057646b 13-Dec-2015 nicm <nicm@openbsd.org>

Use member names in cmd_entry definitions so I stop getting confused
about the order.


123