# Potential bug: vim search mode would leak delete key

**URL:** https://community.silverbullet.md/t/potential-bug-vim-search-mode-would-leak-delete-key/690
**Category:** General
**Created:** [July 19, 2024, 9:39pm UTC](https://community.silverbullet.md/t/potential-bug-vim-search-mode-would-leak-delete-key/690 "2024-07-19T21:39:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LumenYoung](https://community.silverbullet.md/user_avatar/community.silverbullet.md/lumenyoung/32/368_2.png) [@LumenYoung](https://community.silverbullet.md/u/LumenYoung)
#### Post date: [July 19, 2024, 9:39pm UTC](https://community.silverbullet.md/t/potential-bug-vim-search-mode-would-leak-delete-key/690/1 "2024-07-19T21:39:06Z")

</div>

As suggested in the title, I find this potential bug, and it is easy to reproduce on my side

1. enable vim mode
2. type `/` to enter search mode
3. enter random characters and then backspace to simulate a deletion

Expected behavior: the character in search should be delete

Current behavior: the searched content is not deleted, rather the character under the cursor is deleted.

SB Version: 0.8.1

It would be nice if I can get several confirmations, then I will file a bug report on GitHub

---

<div class="post-metadata">

### Author: ![meain](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@meain](https://community.silverbullet.md/u/meain)
#### Post date: [July 22, 2024, 10:57am UTC](https://community.silverbullet.md/t/potential-bug-vim-search-mode-would-leak-delete-key/690/2 "2024-07-22T10:57:40Z")

</div>

Yup, looks like a bug. I can reproduce the same on the latest commit of SB (1635c417).
