Reflowing the grid in-place involved way too much memmove() for a big

performance cost with a large history. Instead change back to using a
second grid and copying modified lines over which is much faster (this
doesn't revert to the old code however which didn't support UTF-8
properly). GitHub issue 1249.
This commit is contained in:
nicm
2018-02-16 09:51:41 +00:00
parent 7f4513ec34
commit 320abba341
2 changed files with 130 additions and 69 deletions

1
tmux.h
View File

@ -551,6 +551,7 @@ enum utf8_state {
/* Grid line flags. */
#define GRID_LINE_WRAPPED 0x1
#define GRID_LINE_EXTENDED 0x2
#define GRID_LINE_DEAD 0x4
/* Grid cell data. */
struct grid_cell {