Skip to content

Conversation

@jensenojs
Copy link
Contributor

  • output_window: is_at_bottom() checks cursor instead of viewport (viewport almost always at bottom in streaming chat)
  • CursorMoved autocmd replaces WinScrolled for both windows
  • state: add cursor persistence functions (save/get/set)
  • output_window: add buffer_valid() guard for buffer-only operations

- output_window: is_at_bottom() checks cursor instead of viewport
  (viewport almost always at bottom in streaming chat)
- CursorMoved autocmd replaces WinScrolled for both windows
- state: add cursor persistence functions (save/get/set)
- output_window: add buffer_valid() guard for buffer-only operations
@jensenojs
Copy link
Contributor Author

for

I find one issue where if you move the cursor in the outpout window withoud scrolling and close/reopen, the cursor will be set at the bottom instead of restoring to the last position.

@sudo-tee
Copy link
Owner

Thanks,

This one make sense and is pretty straight forward

@sudo-tee sudo-tee merged commit 22ee4f0 into sudo-tee:main Feb 12, 2026
5 checks passed
@jensenojs jensenojs deleted the fix/window-cursor-handling branch February 13, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants