Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1599: dot command doesn't work in macros #1595

Merged
merged 5 commits into from
Apr 29, 2017
Merged

Conversation

Chillee
Copy link
Member

@Chillee Chillee commented Apr 28, 2017

Pretty simple. We don't want to prevent us from creating an undo point by setting "runRepeatableAction" to false, we want to prevent us from creating an undo point by checking if we're replaying a macro.

On a related note, I found this issue while trying to fix #1216, which doesn't seem to be an issue anymore.

@johnfn
Copy link
Member

johnfn commented Apr 28, 2017

I'm a bit confused though. I thought that the problem with #1309 was that macros could cause infinite recursion by calling themselves. How is that related to undo points? Were you referring to a different issue?

@Chillee
Copy link
Member Author

Chillee commented Apr 28, 2017

Oh sorry, I linked the wrong issue (and I didn't actually fix the issue I meant to link). When trying to fix that issue, I found that it seems to have been fixed at some point (I'm not able to replicate it). However, the dot command still doesn't work properly, because it doesn't do anything in a macro.

This fixes that. I'll make a new issue and change my commit or something

@Chillee Chillee changed the title Fixes #1309 Fixes #1216 Apr 28, 2017
@Chillee Chillee changed the title Fixes #1216 Fixes #1559 Apr 28, 2017
@Chillee Chillee changed the title Fixes #1559 Fixes #1599 Apr 28, 2017
@Chillee
Copy link
Member Author

Chillee commented Apr 29, 2017

@johnfn I added a test that tests the thing I fixed.

That should explain the issue I'm trying to fix a bit more.

@johnfn
Copy link
Member

johnfn commented Apr 29, 2017

Alright, got it! Thanks for the PR. :)

@johnfn johnfn merged commit 46ef730 into VSCodeVim:master Apr 29, 2017
@Chillee Chillee changed the title Fixes #1599 Fixes #1599: dot command doesn't work in macros May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using "." in a macro causes the macro to execute forever
2 participants