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

CTRL+V sometimes paste whole line instead what's in the clipboard #336

Closed
artursOs opened this issue Sep 19, 2017 · 8 comments
Closed

CTRL+V sometimes paste whole line instead what's in the clipboard #336

artursOs opened this issue Sep 19, 2017 · 8 comments

Comments

@artursOs
Copy link

Expected behavior

output what is in buffer

Actual behavior

outputs again set_command string

Steps to reproduce

set_command('test') . ctrl-v will output "test" instead of what is in buffer

Browser and OS

chrome/ffox

@jcubic
Copy link
Owner

jcubic commented Sep 19, 2017

what you mean by buffer, a clipboard?

I cannot reproduce I've copied "terminal" to clipboard and when I've press CTRL+V I've got "testterminal"
see
https://codepen.io/jcubic/pen/BwBYOZ

type test <enter> CTRL+V

@artursOs
Copy link
Author

yes, clipboard. first you need to use set_command('test') then press ctrl - v - it will output not what is stored in clipboard, but what was printed with set_command.

@artursOs
Copy link
Author

strange , i just tested on the link you provided. maybe it's not set_command()... but when you focus on command line with mouse click and press ctrl-v, sometimes it pastes clipboard result,but some times it pastes whole command string from the start.

@jcubic
Copy link
Owner

jcubic commented Sep 19, 2017

can you tell me exact steps to reproduce the issue? and do you have red prompt when you press CTRL+V on that vintage demo?

@artursOs
Copy link
Author

i do not have red promt. i must apologize about set_command... it was problem on my side. But sometimes ctrl-v clones whole command instead of pasting what's in clipboard. But it happens when performing quick ctrl+v. So maybe it's not that critical.

@jcubic
Copy link
Owner

jcubic commented Sep 20, 2017

Ok, I've got it after focusing and pasting few times I got whole line will try to fix the issue.

@jcubic jcubic changed the title pressing ctrl-v after using set_command or cmd().set CTRL+V sometimes paste whole line instead what's in the clipboard Sep 20, 2017
jcubic added a commit that referenced this issue Sep 20, 2017
@jcubic
Copy link
Owner

jcubic commented Sep 20, 2017

There was some race condition, should be working now in devel branch.

@jcubic
Copy link
Owner

jcubic commented Sep 24, 2017

Released in version 1.8.0

@jcubic jcubic closed this as completed Sep 24, 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

No branches or pull requests

2 participants