Skip to content

terminal_view: Reset cursor blink on SendText and SendKeystroke actions#53171

Merged
ConradIrwin merged 1 commit intozed-industries:mainfrom
Dnreikronos:fix/terminal-cursor-blink-reset
Apr 7, 2026
Merged

terminal_view: Reset cursor blink on SendText and SendKeystroke actions#53171
ConradIrwin merged 1 commit intozed-industries:mainfrom
Dnreikronos:fix/terminal-cursor-blink-reset

Conversation

@Dnreikronos
Copy link
Copy Markdown
Contributor

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Closes #53115

Release Notes:

  • Fixed terminal cursor blink not resetting when navigating with action-bound keys (e.g., alt+left/right on macOS, alt+b/f on Linux)

Demo

Before the fix

The cursor stays invisible after word-jumping because the blink cycle keeps going without resetting.

before.mp4

After the fix

The cursor shows up at the new position right after each word-jump, then blinks again as expected.

after.mp4
The send_text and send_keystroke handlers were missing
pause_blinking calls, so keystrokes dispatched through
action bindings (like alt-left/right on macOS or alt-b/f
on Linux) skipped the blink reset that key_down performs.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 5, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, ConradIrwin and rtfeldman and removed request for a team April 5, 2026 00:18
@MrSubidubi MrSubidubi changed the title Reset cursor blink on SendText and SendKeystroke actions Apr 6, 2026
@ConradIrwin
Copy link
Copy Markdown
Member

Thanks for the fix.

@ConradIrwin ConradIrwin enabled auto-merge (squash) April 7, 2026 02:39
@ConradIrwin ConradIrwin merged commit 9c5f3b1 into zed-industries:main Apr 7, 2026
34 checks passed
MasoudAlali pushed a commit to MasoudAlali/zed-ide that referenced this pull request Apr 7, 2026
…ctions (zed-industries#53171)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes zed-industries#53115

Release Notes:

- Fixed terminal cursor blink not resetting when navigating with
action-bound keys (e.g., alt+left/right on macOS, alt+b/f on Linux)

## Demo

### Before the fix
The cursor stays invisible after word-jumping because the blink cycle
keeps going without resetting.


https://github.com/user-attachments/assets/00dbdba6-d793-4a23-abcc-37887f4d1262



### After the fix
The cursor shows up at the new position right after each word-jump, then
blinks again as expected.



https://github.com/user-attachments/assets/48d5906c-4899-4f4a-adbd-5908ebea0cfb
piper-of-dawn pushed a commit to piper-of-dawn/zed that referenced this pull request Apr 25, 2026
…ctions (zed-industries#53171)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes zed-industries#53115

Release Notes:

- Fixed terminal cursor blink not resetting when navigating with
action-bound keys (e.g., alt+left/right on macOS, alt+b/f on Linux)

## Demo

### Before the fix
The cursor stays invisible after word-jumping because the blink cycle
keeps going without resetting.


https://github.com/user-attachments/assets/00dbdba6-d793-4a23-abcc-37887f4d1262



### After the fix
The cursor shows up at the new position right after each word-jump, then
blinks again as expected.



https://github.com/user-attachments/assets/48d5906c-4899-4f4a-adbd-5908ebea0cfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

3 participants