summaryrefslogtreecommitdiffstats
path: root/paste.c
AgeCommit message (Collapse)Author
2017-01-24Shorten a long line, and don't leak buffer in paste_add if size is zero.nicm
2016-10-12Unused variable and missing time.h.nicm
2016-10-11Some other stuff that can be local to one file.nicm
2016-10-10Some more static.nicm
2016-10-05Keep buffer creation time and add accessors for it and the order number.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-11-12Nuke the utf8 and status-utf8 options and make tmux only a UTF-8nicm
terminal. We still support non-UTF-8 terminals outside tmux, but inside it is always UTF-8 (as when the utf8 and status-utf8 options were on).
2015-10-27Move struct options into options.c.nicm
2015-09-14Remove some extra blank lines.nicm
2015-09-11Merge delete-buffer into cmd-set-buffer.c and change the paste buffernicm
API so it has one paste_free() rather than free_top and free_name (everywhere that uses it already has the right pointer).
2015-08-29paste_send_pane can be merged into cmd-paste-buffer.c now.nicm
2015-08-29Move struct paste_buffer out of tmux.h.nicm
2015-04-07When replacing, don't free the old paste until after the new one's namenicm
has been copied. Fixes a use-after-free in window-copy.c. Bug reported by J Raynor (who also provided a different fix).
2014-11-05Tidy up mode-mouse check.nicm
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.nicm
2014-10-08Use xrealloc(NULL, n, m) instead of xmalloc(n * m) to get overflownicm
check.
2014-09-01Various minor style and spacing nits.nicm
2014-08-25Don't allow pasting into input-disabled panes, from Anish R Athalye.nicm
2014-06-20Comment style nits.nicm
2014-05-13Don't allow multiple buffers with the same name, from Thomas Adam.nicm
2014-05-13Add support for named buffers. If you don't name a buffer, things worknicm
much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
2014-04-24There is no longer a need for a paste_stack struct or for global_buffersnicm
to be global. Move to paste.c.
2014-04-02Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also makenicm
buffer_sample bigger to let it trim at window right edge.
2014-03-31Add setb -a to append and a copy mode append command, from J Raynor withnicm
minor changes.
2014-02-17Fix memory leaks with paste_replace, based on changes from J Raynor.nicm
2012-11-27Support middle-click paste, based on a diff from Ailin Nemui.Nicholas Marriott
2012-09-04Trivial code simplification from Tim Ruehsen.Nicholas Marriott
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2011-03-28Style: uint -> u_int and a missing else.Nicholas Marriott
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
2010-06-21Add a choose-buffer command for easier use of the paste buffer stack.Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...
2009-11-26Tidy up various bits of the paste code, make the data buffer char * and addNicholas Marriott
comments.
2009-11-03tv member of struct paste_buffer is updated but not otherwise used, so removeNicholas Marriott
it.
2009-09-20Regularise some fatal messages.Nicholas Marriott
2009-09-07Give each paste buffer a size member instead of requiring them to beNicholas Marriott
zero-terminated.
2009-07-30Don't leak when rollling buffers off when the paste buffer limit is reached.Nicholas Marriott
2009-07-02Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott
when trying to paste them, found by me, and miscalculation of the start/end causing random fatal errors when copying in copy-mode, reported by sthen. ok sthen "put it in" deraadt
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti