# terminal: Fix vi mode cursor not updating on k/j navigation \(\#46762\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b4d1ba7a0d51557f8728c333dfac13447ab8bb00)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b4d1ba7a0d51557f8728c333dfac13447ab8bb00

Requested commit: b4d1ba7a0d51557f8728c333dfac13447ab8bb00

Commit: b4d1ba7a0d51557f8728c333dfac13447ab8bb00

Tree: 412c460aeea3343632d94e19b823edd62badaee8

Author: xcb3d

Committer: GitHub

## Message

```
terminal: Fix vi mode cursor not updating on k/j navigation (#46762)

The cursor in terminal vi mode was not visually updating when using
vi motion navigation keys, despite internal position tracking working correctly.
This was caused by missing `cx.notify()` calls to trigger re-rendering.

Refactored keystroke handling by extracting common logic from `key_down`
and `send_keystroke` into a shared `process_keystroke` helper method.

Closes #46736

Release Notes:

- terminal: Fixed vi mode cursor not visually updating when navigating
with vi motion keys

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

- [b8c5f672cdf8ed3c1f4c8016f2b8d6d84b7a7a9c](https://git.cafe/gitcafe/zed/commit/b8c5f672cdf8ed3c1f4c8016f2b8d6d84b7a7a9c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b4d1ba7a0d51557f8728c333dfac13447ab8bb00?format=markdown)
