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

:RInlineTemp does not work if the local variable is assigned again #24

Open
tcrayford opened this issue Jun 1, 2011 · 2 comments
Open

Comments

@tcrayford
Copy link

On the first line of:

x = 5
foo = x + 10
x = 10
bar = x + 10

Doing RInlineTemp gives me:

foo = x + 10
5 = 10
bar = x + 10

It should result in the following:

foo = 5 + 10
x = 10
bar = x + 10
despo added a commit to despo/vim-ruby-refactoring that referenced this issue Jun 1, 2011
@tcrayford
Copy link
Author

I'm not so sure how easy it will be to fix this properly without doing hard-core analysis of the code (I'm having a go anyway).

despo added a commit to despo/vim-ruby-refactoring that referenced this issue Jun 1, 2011
@despo
Copy link
Contributor

despo commented Jun 1, 2011

hi tom,

i was looking at some other issue and the problem you describe seems to have been resolved as a consequence of the changes.
on commit despo@d86f9e0

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

No branches or pull requests

2 participants