mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Some minor performance improvements - most notably, don't search the
input state table if the next character matches the same state as before.
This commit is contained in:
@ -1326,8 +1326,7 @@ screen_write_collect_end(struct screen_write_ctx *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
memcpy(&gc, &ci->gc, sizeof gc);
|
||||
grid_view_set_cells(s->grid, s->cx, s->cy, &gc, ci->data, ci->used);
|
||||
grid_view_set_cells(s->grid, s->cx, s->cy, &ci->gc, ci->data, ci->used);
|
||||
screen_write_set_cursor(ctx, s->cx + ci->used, -1);
|
||||
|
||||
for (xx = s->cx; xx < screen_size_x(s); xx++) {
|
||||
@ -1351,8 +1350,7 @@ screen_write_collect_add(struct screen_write_ctx *ctx,
|
||||
/*
|
||||
* Don't need to check that the attributes and whatnot are still the
|
||||
* same - input_parse will end the collection when anything that isn't
|
||||
* a plain character is encountered. Also nothing should make it here
|
||||
* that isn't a single ASCII character.
|
||||
* a plain character is encountered.
|
||||
*/
|
||||
|
||||
collect = 1;
|
||||
|
Reference in New Issue
Block a user