term: move row->prompt_marker into new struct, row->shell_integration

This commit is contained in:
Daniel Eklöf 2022-12-08 10:35:30 +01:00
parent 0f10c4fd6c
commit f8e875a7cd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 12 additions and 11 deletions

View file

@ -377,7 +377,7 @@ execute_binding(struct seat *seat, struct terminal *term,
const struct row *row = grid->rows[r_abs];
xassert(row != NULL);
if (!row->prompt_marker)
if (!row->shell_integration.prompt_marker)
continue;
grid->view = r_abs;
@ -409,7 +409,7 @@ execute_binding(struct seat *seat, struct terminal *term,
const struct row *row = grid->rows[r_abs];
xassert(row != NULL);
if (!row->prompt_marker) {
if (!row->shell_integration.prompt_marker) {
if (r_abs == grid->offset + term->rows - 1) {
/* Weve reached the bottom of the scrollback */
break;