You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mouse tracking is not restored after source editor exits #275
When opening a source file with e and returning from the editor, mouse-wheel input can behave incorrectly because Bubble Tea v1 does not restore mouse tracking after tea.ExecProcess.
Add a small revdiff-local workaround: mirror the existing annotation-editor behavior and return tea.EnableMouseCellMotion after the source editor exits, while preserving reload behavior and respecting --no-mouse.
I have the second approach implemented and tested locally. If that approach is acceptable, I’d be happy to follow up with a PR.
source editor (e) does not, sourceEditorFinishedMsg / handleSourceEditorFinished in app/ui/editor.go never re-emit the enable sequence
#235 only touched the annotation path, so e was left with the same defect it fixed.
approach 2 is the way to go: mirror the annotation path and gate on the mouseTracking flag so --no-mouse still wins. PR welcome, pls keep it minimal and matching the existing pattern, and restore on both the clean and error return since the terminal is released either way.
Activity
umputun commentedon Jul 17, 2026
confirmed, your diagnosis is exactly right. Two editor paths and only one restores mouse tracking after the
tea.ExecProcesshandoff:ctrl+e) restores it, fixed in fix(ui): Restore mouse after editor return #235 wherehandleEditorFinishedemitstea.EnableMouseCellMotione) does not,sourceEditorFinishedMsg/handleSourceEditorFinishedinapp/ui/editor.gonever re-emit the enable sequence#235 only touched the annotation path, so
ewas left with the same defect it fixed.approach 2 is the way to go: mirror the annotation path and gate on the
mouseTrackingflag so--no-mousestill wins. PR welcome, pls keep it minimal and matching the existing pattern, and restore on both the clean and error return since the terminal is released either way.