aboutsummaryrefslogtreecommitdiff
path: root/scripts/benchmark.py
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-06 12:06:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-06 12:06:54 +0000
commitbe980a62825a01b7c3a6b62cf59a3161bf7e0ed5 (patch)
tree61d1855dee1ab3f29858c617df121c9d49bd29fa /scripts/benchmark.py
parentMerge branch 'consume-modifiers-for-key-bindings' (diff)
url-mode: fix auto-detection of URLs in the top corner of the viewport
The ‘proto_chars’ variable is kind of like a FIFO, where characters from the grid is pushed to the back of it. I.e. the last <n> bytes are at the *end* of the array. This was what the protocol matching logic expected. However, it was only true after reading ‘max_prot_len’ characters from the grid. Before that, the last <n> bytes from the grid was in the *beginning* of ‘proto_chars’. This meant we did not detect URLs starting in the top left corner of the viewport. Test case: foot sh -c "echo http://test.com && sleep 9999"
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions