Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix indentation of grid_string_cells_fg. | 2015-09-02 | 1 | -24/+24 | ||
| | ||||||
* | In grid_duplicate_lines, if the line is empty (cellsize == 0) then clear | 2015-08-24 | 1 | -2/+3 | ||
| | | | | | | the destination celldata pointer rather than leaving a stale copy of the source pointer (which may later be freed). Fixes a crash found by Kuang-che Wu. | |||||
* | Remove some stuff that accidentally ended up here from portable, and | 2015-05-08 | 1 | -20/+11 | ||
| | | | | remove a little-used debug function. | |||||
* | use reallocarray instead of calloc; avoid the zero before infill | 2015-04-23 | 1 | -2/+2 | ||
| | | | | ok nicm | |||||
* | Add xreallocarray and remove nmemb argument from xrealloc. | 2014-10-08 | 1 | -7/+9 | ||
| | ||||||
* | Use xrealloc(NULL, n, m) instead of xmalloc(n * m) to get overflow | 2014-10-08 | 1 | -2/+3 | ||
| | | | | check. | |||||
* | Fix some comments (c -> colour) and join unnecessary line splits. | 2014-09-17 | 1 | -7/+5 | ||
| | ||||||
* | Various minor style and spacing nits. | 2014-09-01 | 1 | -2/+2 | ||
| | ||||||
* | Memory leak in error path and unnecessary assignment, from clang. | 2014-04-16 | 1 | -2/+2 | ||
| | ||||||
* | GRID_DEBUG is no longer needed. | 2014-03-31 | 1 | -19/+1 | ||
| | ||||||
* | Style nit - no space between function name and bracket. | 2014-02-14 | 1 | -2/+2 | ||
| | ||||||
* | Allow replacing each of the many sets of separate foo-{fg,bg,attr} | 2014-01-28 | 1 | -2/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha. | |||||
* | Couple of fixes from cppcheck via Tiago Cunha. | 2014-01-15 | 1 | -2/+2 | ||
| | ||||||
* | Style and comment fixes from Tiago Cunha. | 2014-01-09 | 1 | -2/+2 | ||
| | ||||||
* | Trivial style and spacing nits. | 2013-10-10 | 1 | -5/+4 | ||
| | ||||||
* | Only include actual trailing spaces not unused cells with capturep -J, | 2013-10-10 | 1 | -2/+6 | ||
| | | | | from George Nachman. | |||||
* | Allow lastgc to be NULL in grid_string_cells so find-window doesn't | 2013-03-25 | 1 | -2/+2 | ||
| | | | | crash, problem reported by eugene everson. | |||||
* | Preserve trailing spaces with capture-pane -J, from George Nachman. | 2013-03-25 | 1 | -4/+6 | ||
| | ||||||
* | Use \\ not \ for escaping \. | 2013-03-25 | 1 | -2/+2 | ||
| | ||||||
* | Add -C and -J to capture pane to escape control sequences and to join | 2013-03-22 | 1 | -14/+44 | ||
| | | | | wrapped line, based on a diff from George Nachman. | |||||
* | Clear last attributes after reset in string_cells, from George Nachman. | 2013-03-22 | 1 | -3/+6 | ||
| | ||||||
* | Add -e flag to capture-pane to include embedded ANSI SGR escape | 2013-03-22 | 1 | -5/+188 | ||
| | | | | sequences, from George Nachman. | |||||
* | Rework reflow code so it does not do so much allocation which should be | 2013-03-21 | 1 | -29/+126 | ||
| | | | | faster with large histories. | |||||
* | Automatically reflow wrapped lines when a pane is resized, requested by | 2013-02-05 | 1 | -1/+42 | ||
| | | | | many over the years and finally implemented by Richard Woodbury. | |||||
* | Rather than having two grids for each pane, one for ASCII and one for | 2013-01-18 | 1 | -93/+12 | ||
| | | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later). | |||||
* | xfree is not particularly helpful, remove it. From Thomas Adam. | 2012-07-10 | 1 | -11/+8 | ||
| | ||||||
* | Use a predefined structure for not-space cells used to set attributes. | 2012-05-23 | 1 | -1/+2 | ||
| | ||||||
* | Merge copy mode and output mode, dropping the latter. Idea and code from | 2010-04-06 | 1 | -42/+1 | ||
| | | | | Micah Cowan. | |||||
* | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last | 2009-12-03 | 1 | -14/+14 | ||
| | | | | | time now I've configured emacs to make them displayed in really annoying colours... | |||||
* | Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid | 2009-11-18 | 1 | -10/+8 | ||
| | | | | | | | data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc. | |||||
* | Move lines into the history when scrolling even if the scroll region is not | 2009-10-13 | 1 | -12/+60 | ||
| | | | | | | the entire screen. Allows ircII users to see history, prompted by naddy. | |||||
* | Stick line length to what is actually used (removing an optimization that | 2009-09-15 | 1 | -15/+11 | ||
| | | | | | | | | allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. This fixes xterm copy/paste from tmux which treats trailing spaces differently from clearing a line with the escape sequences. Reported by martynas@. | |||||
* | Fix grid_expand_line so it actually works when the required size is bigger than | 2009-08-21 | 1 | -6/+9 | ||
| | | | | 2 * the current size. | |||||
* | A few trivial optimisations: no need to check for zero size if calling | 2009-08-20 | 1 | -1/+5 | ||
| | | | | | | buffer_ensure in buffer.c; expand grid lines by a greater increase than one each time; and don't read UTF-8 data unless it actually needs to be checked when overwriting a cell. | |||||
* | Use the right source and destination lines in grid_duplicate_lines. | 2009-08-10 | 1 | -3/+3 | ||
| | ||||||
* | Change the way the grid is stored, previously it was: | 2009-08-08 | 1 | -95/+81 | ||
| | | | | | | | | | | | - a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and containts the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags. | |||||
* | Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by | 2009-07-21 | 1 | -15/+1 | ||
| | | | | lint. | |||||
* | Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong | 2009-07-16 | 1 | -2/+2 | ||
| | | | | place when copying UTF-8 data. Found by Dan Colish. | |||||
* | Support "alternate screen" mode (terminfo smcup/rmcup) typically used by full | 2009-07-13 | 1 | -1/+47 | ||
| | | | | | | | screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled. | |||||
* | Limit the history to hlimit not hlimit - 1. This makes a history-limit setting | 2009-07-11 | 1 | -2/+2 | ||
| | | | | of 0 work as expected. | |||||
* | Miscellaneous unused functions, including one which was basically a | 2009-06-25 | 1 | -26/+1 | ||
| | | | | duplicate. Found by lint. | |||||
* | Change find-window and monitor-content to use fnmatch(3). For convenience and | 2009-06-24 | 1 | -7/+10 | ||
| | | | | | | | | | compatibility, *s are implicitly added at the start and end of the pattern. Also display the line number and the entire line in the results, and lose the nasty section_string function and the now empty util.c file. Initially from Tiago Cunha. | |||||
* | Add a dedicated function to convert a line into a string and use it to simplify the search window function. | 2009-06-24 | 1 | -1/+47 | ||
| | ||||||
* | Remove trailing newlines, spaces, and tabs. | 2009-06-05 | 1 | -3/+1 | ||
| | | | | No binary change. | |||||
* | Import tmux, a terminal multiplexor allowing (among other things) a single | 2009-06-01 | 1 | -0/+497 | ||
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 |