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

Redoing paste-format discards redo history #16

Open
nyanpasu64 opened this issue Jan 17, 2016 · 3 comments
Open

Redoing paste-format discards redo history #16

nyanpasu64 opened this issue Jan 17, 2016 · 3 comments

Comments

@nyanpasu64
Copy link

ST3 32-bit on Windows.

When I redo a "paste" operation, Elastic reformats the pasted text, throwing away all subsequent redo steps. This leads to code loss when stepping through undo history.

EDIT: This may only happen when the initial paste occurred before the plugin finished loading.

@adzenith
Copy link
Member

I can't reproduce this - on my end, redoing a paste works like it should. I don't have a Windows machine to test with, but I don't see why it would be any different. Do you have any other plugins installed? Does it do this every time?

@nyanpasu64
Copy link
Author

I discovered a way to reproduce:

Paste in text before the plugin is loaded. Redoing this paste will trigger elastic formatting and discard all future history.

@adzenith
Copy link
Member

Hm... I'm not really sure if there's a way around that. Maybe the plugin could detect an edit to the buffer that doesn't have a subsequent formatting action?

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