Rivoreo Source Code Repositories
src.rivoreo.one
/
tmux
/
3.2a
/
grid.c
tag
85893888497c5077979bc7557fb970ee5e3d13d9
tagger
Nicholas Marriott <nicholas.marriott@gmail.com>
Thu Jun 10 09:28:07 2021 +0100
object
3b929f332aafa7f1080eacc31feb11ffbb1d1841
3.2a
ef97008
malloc_trim is itself very poor and gets slower and slower as the heap becomes
by Nicholas Marriott
· 3 years, 7 months ago
39904f7
Merge branch 'obsd-master' into master
by Thomas Adam
· 3 years, 8 months ago
3dddc11
Send Unicode directional isolate characters around horizontal pane
by nicm
· 3 years, 8 months ago
66da51b
Merge branch 'obsd-master' into master
by Thomas Adam
· 3 years, 9 months ago
91d112b
There is no need to clear every line entirely before drawing to it, this
by nicm
· 3 years, 9 months ago
680e7a3
glibc's malloc is very bad about returning memory from the kernel, add a call
by Nicholas Marriott
· 4 years ago
212c0c1
Do not force line width to grid width because it may need to be larger
by nicm
· 4 years, 2 months ago
03b2998
Do not take the address of a potentially unaligned member.
by nicm
· 4 years, 4 months ago
d9cd493
Reset wrapped flag when clearing or moving lines, GitHub issue 2215.
by nicm
· 4 years, 4 months ago
4694e9a
Move the code to set up a padding cell into grid.c.
by nicm
· 4 years, 5 months ago
2a4d4bd
Allow UTF-8 characters of width 0 to be stored, it is useful to be able
by nicm
· 4 years, 5 months ago
f336599
Make padding cell a valid character.
by nicm
· 4 years, 5 months ago
370f0bb
Remove leftover debug logging and fix comparison.
by nicm
· 4 years, 5 months ago
6f03e49
Use the internal representation for UTF-8 keys instead of wchar_t and
by nicm
· 4 years, 5 months ago
49ec074
Tidy up new UTF-8 code and make it more generic.
by nicm
· 4 years, 5 months ago
3a5219c
Instead of storing all UTF-8 characters in the extended cell which means
by nicm
· 4 years, 5 months ago
ecbdcc2
Add screen write flags instead of individual bits and fix line length
by nicm
· 4 years, 5 months ago
6ea6d46
Store and restore cursor position when copy mode is resized, from
by nicm
· 4 years, 5 months ago
5bf96c2
Use a grid cell not a style for the pane style.
by nicm
· 4 years, 5 months ago
c7883d5
Use grid_empty_line rather than memset when adding new lines on resize.
by nicm
· 4 years, 6 months ago
315961f
Some more, and use of wp->window before wp NULL check in format.c.
by nicm
· 4 years, 6 months ago
e6cddcf
Add a -T flag to resize-pane to trim lines below the cursor, moving
by nicm
· 4 years, 7 months ago
edca27a
AIX colours are always stored as 90-97, not 100-107. From Johannes Altmanninger.
by nicm
· 4 years, 7 months ago
ce61bf9
Do not set the history flag if there is no history.
by nicm
· 4 years, 7 months ago
7826d40
Style nits in function arguments.
by nicm
· 4 years, 11 months ago
e3359f8
Some minor performance improvements - most notably, don't search the
by nicm
· 5 years ago
58bbce0
Remove check for same size - size has already been changed so this
by nicm
· 5 years ago
b89f2f2
Fix grid clear code to correctly clear with the default background
by nicm
· 5 years ago
3635b3c
Correctly clear underscore colour in grid_get_cell1, also fix struct
by nicm
· 5 years ago
dae2868
Add support for underscore colours with Setulc capability, mostly from
by nicm
· 5 years ago
e90d4a6
Add formats for word and line under the mouse and use them to add some
by nicm
· 5 years ago
1ee944a
Add support for overline (SGR 53), from Ricardo Banffy.
by nicm
· 5 years ago
ffa4d48
Store and restore cursor across reflow by working out a position based
by nicm
· 6 years ago
792fcb1
Restore a check to stop scrolled lines becoming larger than total lines,
by nicm
· 6 years ago
9ee1a8f
Improve cursor positioning after reflow by storing the position as an
by nicm
· 6 years ago
d738d51
Mode init needs to be fired with the mode on the list or it will not be
by nicm
· 6 years ago
b2bc34a
Set a flag on cells are genuinely empty (cleared and never written to)
by nicm
· 6 years ago
fc41bf4
Add a "terminal" colour which can be used instead of "default" in style
by nicm
· 6 years ago
bc0e527
Support for extended underline styles on terminals which offer them,
by nicm
· 6 years ago
e7d5302
Helper function to shorten history.
by nicm
· 6 years ago
0351902
Add function comments.
by nicm
· 6 years ago
2fae6a5
Add accessors for grid linedata member, for some future work. From Dan Aloni.
by nicm
· 6 years ago
d0c9923
Fix some compiler warnings; from Thomas Adam.
by nicm
· 6 years ago
ba31d3a
Increment the lines counter when skipping a line to avoid an infinite
by nicm
· 6 years ago
2595718
Include source function name in grid_check_y logging.
by nicm
· 7 years ago
320abba
Reflowing the grid in-place involved way too much memmove() for a big
by nicm
· 7 years ago
533a571
Completely rewrite the reflow code to correctly handle double width
by nicm
· 7 years ago
50a5f84
Support mouse on preview in tree mode.
by nicm
· 7 years ago
6fdaaa0
Do not free more lines than are available in the history.
by nicm
· 7 years ago
70bc07a
Previously, extended cell data was never reduced in size even when the
by nicm
· 7 years ago
6abfd9b
Instead of overloading the line clear function to mean free if
by nicm
· 7 years ago
31625c2
Line length and spaces to tabs.
by nicm
· 7 years ago
d58c379
Some other unused variables.
by nicm
· 7 years ago
0cd7472
When expanding a line in order to clear it, we need to use the default
by nicm
· 7 years ago
18bab30
Scrolling needs to use background colour.
by nicm
· 7 years ago
03d01ea
When we write out the grid including escape sequences, an SGR 0 needs to
by nicm
· 7 years ago
689f4bf
Style nits and a missing cast.
by nicm
· 7 years ago
df3ab87
Add support for the strikethrough attribute (SGR 9), using the new smxx
by nicm
· 8 years ago
daac28f
If moving cells outside the current used count, update it.
by nicm
· 8 years ago
0414b1f
Minor bits: fix an array size, add comment, make grid_cell_entry static.
by nicm
· 8 years ago
4c2a780
Collected cells may still need to be extended for RGB colours.
by nicm
· 8 years ago
13a0b6b
Collect sequences of printable ASCII characters and process them
by nicm
· 8 years ago
ac1f294
Add a helper to store a cell, and some tidying.
by nicm
· 8 years ago
acb4bd9
Tweak how much we expand lines by.
by nicm
· 8 years ago
75adf83
Expand lines more aggressively to reduce rate of allocations.
by nicm
· 8 years ago
e0e9a54
Clear cell entry with grid_default_entry not grid_default_cell.
by nicm
· 8 years ago
a0998e4
Make grid_clear_cell set up the entry properly for 256 and RGB cells.
by nicm
· 8 years ago
4179b42
Add support for BCE (background colour erase). This makes various escape
by nicm
· 8 years ago
e454018
Add static in window-*.c and move some internal functions out of tmux.h.
by nicm
· 8 years ago
c426e48
Loads more static, except for cmd-*.c and window-*.c.
by nicm
· 8 years ago
2627ab3
Remember the number of lines scrolled into the history (versus cleared
by nicm
· 8 years ago
0f73af8
Don't update cells in each block of data read from a pane immediately,
by nicm
· 8 years ago
49e9f93
Add RGB escape sequences for capture-pane -e.
by nicm
· 9 years ago
427b820
Support for RGB colour, using the extended cell mechanism to avoid
by nicm
· 9 years ago
995af0e
I no longer use my SourceForge address so replace it.
by nicm
· 9 years ago
28e72ae
Don't leak extddata, memset after freeing it, not before. From Patrick Palka.
by nicm
· 9 years ago
c5689a5
Long overdue change to the way we store cells in the grid: now, instead
by nicm
· 9 years ago
f2d03f4
grid_put_utf8 is unused, remove it.
by nicm
· 9 years ago
28f23f1
Free the history when it is cleared, based on a diff from Carlo Cannas.
by nicm
· 9 years ago
a45164f
Fix indentation of grid_string_cells_fg.
by nicm
· 9 years ago
3219e03
In grid_duplicate_lines, if the line is empty (cellsize == 0) then clear
by nicm
· 9 years ago
879de25
Remove some stuff that accidentally ended up here from portable, and
by nicm
· 9 years ago
ab73997
use reallocarray instead of calloc; avoid the zero before infill ok nicm
by deraadt
· 9 years ago
a27ba6e
Add xreallocarray and remove nmemb argument from xrealloc.
by nicm
· 10 years ago
77efcf8
Use xrealloc(NULL, n, m) instead of xmalloc(n * m) to get overflow check.
by nicm
· 10 years ago
21062d7
Fix some comments (c -> colour) and join unnecessary line splits.
by nicm
· 10 years ago
4e956d5
Various minor style and spacing nits.
by nicm
· 10 years ago
5acee1c
Memory leak in error path and unnecessary assignment, from clang.
by nicm
· 11 years ago
7bdb675
GRID_DEBUG is no longer needed.
by nicm
· 11 years ago
f835be4
Style nit - no space between function name and bracket.
by nicm
· 11 years ago
945339b
Allow replacing each of the many sets of separate foo-{fg,bg,attr}
by nicm
· 11 years ago
3368b60
Couple of fixes from cppcheck via Tiago Cunha.
by nicm
· 11 years ago
994cb87
Style and comment fixes from Tiago Cunha.
by nicm
· 11 years ago
1b7c2dd
Trivial style and spacing nits.
by nicm
· 11 years ago
7839993
Only include actual trailing spaces not unused cells with capturep -J,
by nicm
· 11 years ago
304336a
Allow lastgc to be NULL in grid_string_cells so find-window doesn't
by Nicholas Marriott
· 12 years ago
295d869
Add -C and -J to capture pane to escape control sequences and to join
by Nicholas Marriott
· 12 years ago
9b7e18f
Rework reflow code so it does not do so much allocation which should be
by Nicholas Marriott
· 12 years ago
8903c1f
Automatically reflow wrapped lines when a pane is resized, requested by
by Nicholas Marriott
· 12 years ago
fdbfc7e
Rather than having two grids for each pane, one for ASCII and one for
by Nicholas Marriott
· 12 years ago
Next »