aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2025-11-07 06:32:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-11-12 06:41:35 +0000
commit5cb8ff2e9c51c528589e5e1ef78b9a6bd554fc0d (patch)
tree059fb9642b39f9e33d3b4217361e5ba20f190412 /tests
parentchangelog: case sensitive scrollback search: move to correct release (diff)
Fix assertion failure triple-clicking line with quote in last column
By default, triple-click tries to select quoted strings within a logical line. This also works if the line spans multiple screen lines. If there is a quote character in the last column: printf %"$COLUMNS"s \'; printf wrapped; sleep inf and I triple-click on the following soft-wrapped line, there's an assertion failure because the column next to the quote is out of range. The quote position has been found by walking at least one cell backwards from "pos". This means that if the quote position is in the very last column, there must be a row below. Also move the assertion to be a pre-condition, though that's debatable.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions