Fix double-click word selection not extending beyond viewport edges

Add continue_word_upwards_scrollback() and continue_word_downwards_offscreen()
to extend word selection beyond viewport boundaries, mirroring the line
selection fix. Add tests for word selection wrapping into scrollback and
below viewport.

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/58191e45-d925-4996-b0d5-8b1bd4baa8d5

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-07 09:49:50 +00:00
committed by GitHub
parent 82bf8923cc
commit 18fb31b416
3 changed files with 69 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ Detailed list of changes
- Fix dragging of splits layout borders sometimes moving in the wrong direction or having no effect (:pull:`9447`)
- Fix triple-click line selection not extending wrapped lines beyond the bottom edge of the viewport
- Fix triple-click line selection and double-click word selection not extending wrapped lines beyond the edges of the viewport
- Password input in kittens: hide the cursor and display a blinking 🔒 at the end of typed characters to make it visually clear the user is entering a password