remove viewport pin left over from touchpad handling
The renderer pinned a viewport dragged into sublime's past-end room. With scroll_past_end off there is no such room: sublime clamps to bottom_y, so the trigger can only fire against a stale anchor, which following() already resolves on the next frame. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -587,8 +587,6 @@ terminal.viewport_y = 400
|
||||
command = make_command(terminal.view)
|
||||
fold_end = terminal.view.text_point(3, 0) - 1
|
||||
|
||||
terminal.view.settings().set("scroll_past_end", True)
|
||||
|
||||
stream.feed("\x1b[?1049h")
|
||||
command.sync_alt_fold(terminal)
|
||||
assert terminal.view.folds == [(0, fold_end)], terminal.view.folds
|
||||
@@ -610,7 +608,6 @@ assert terminal.viewport_y == 60, terminal.viewport_y
|
||||
stream.feed("\x1b[?1049l")
|
||||
command.sync_alt_fold(terminal)
|
||||
assert terminal.view.folds == [], terminal.view.folds
|
||||
assert terminal.view.settings().get("scroll_past_end") is True, "left untouched"
|
||||
|
||||
# without scrollback there is nothing to fold
|
||||
terminal, stream = make_terminal(rows=5, cols=20)
|
||||
|
||||
Reference in New Issue
Block a user