[Bug] `~` followed by an undo enters visual mode
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with dev/web-demo.html and reproduce the sequence using ~ followed by CodeMirror's mod+z undo command. Trace how the vim emulator handles the case-change command and undo state, then verify that undo leaves normal mode with no selected text and that cursor movement does not expand a selection.
Written by the indexing model from the issue text.
Description
Steps to reproduce
- Go to https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html
- In the normal mode, press
~to invert the case of any character. - Press mod+z to trigger CodeMirror's undo command. (do not use Vim's undo command
u)
Expected result
The vim emulator stays in the normal mode, and no text is selected.
Actual result
It goes into the visual mode - in other words, the character under the cursor is selected. If you move the cursor using the arrow or hjkl keys, the selection will expand accordingly.
- Dominant language
- JavaScript
- Stars
- 470
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from replit/codemirror-vim
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
replit/codemirror-vim#276 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
replit/codemirror-vim#264 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
replit/codemirror-vim#251 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
replit/codemirror-vim#243 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
replit/codemirror-vim#239 ·
All issues in replit/codemirror-vim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·