diff options
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/selection.c b/selection.c index fb8c560a..818a6834 100644 --- a/selection.c +++ b/selection.c @@ -598,6 +598,10 @@ selection_find_quote_right(struct terminal *term, struct coord *pos, char32_t qu wc = row->cells[next_col].wc; if (wc == quote_char) { if (next_col == 0) { + /* Selection coordinates are view-relative, and it + isn't possible to have a right-side quote with + next-col == 0 AND next_row == 0 */ + xassert(next_row > 0); pos->row = next_row - 1; pos->col = term->cols - 1; } else { |
