8000 Canceling c operator by jacekkopecky · Pull Request #774 · atom/vim-mode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

Canceling c operator #774

Merged
merged 5 commits into from
Aug 17, 2015
Merged

Conversation

jacekkopecky
Copy link
Contributor

When a motion matches nothing, e.g. % on a line without brackets, or fx on a line without x, c should be cancelled and go into command mode; currently it simply behaves like i.
This PR implements the desired behaviour.

Also, this PR adds a lot of tests for c%; I wrote those when I mistakenly thought there was some other problem there so I wanted to document the desired behaviour and fix it, and then I found it already worked as I'd described it. If the tests are undesirable, I can remove them.

@jacekkopecky jacekkopecky force-pushed the canceling-c-operator branch from 1693cc6 to 1b88c5a Compare August 1, 2015 21:57
@maxbrunsfeld
Copy link
Contributor

Great!

maxbrunsfeld pushed a commit that referenced this pull request Aug 17, 2015
@maxbrunsfeld maxbrunsfeld merged commit eb12ab4 into atom:master Aug 17, 2015
@jacekkopecky jacekkopecky deleted the canceling-c-operator branch August 17, 2015 19:56
t9md added a commit to t9md/vim-mode that referenced this pull request Sep 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0