-
Notifications
You must be signed in to change notification settings - Fork 66
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
sbp_kill_region with "is_copy" not always removing region #196
Comments
What a coincidence.
I have been wrestling for a while the strange behaviour that I have been getting, periodically, for years, where sometimes the mark is active unexpectedly.
I switch to a window and suddenly there is a large selected region, and I’m thinking, Why, why, WHY!!!!!!!!!
And it turns out that it has to do with having duplicate views on the same file. This is something that works very differently in Sublime so it’s hard to emulate emacs. In this case, if you have the same view in different panes, sublime is sending multiple notifications to the wrong view … that are causing many things to go wrong, such as a selection appearing out of nowhere for no good reason.
In fact, what you describe my actually be another example of that.
Can you do some experiments?
Can you open a file, split the view, and then run your experiment in the second view? Then try it in the first view?
|
Yowza. Yes, I do that a LOT. Usually I'm in VHDL and sometimes up in the declaration region and sometimes down in the code body region. I just tried and couldn't get the bug to reproduce but that's not too unusual. It's kind of intermittent, but again if it's due to view state then it could be very particular. I'll make a note to try to notice the state of multiple views next time it occurs. |
Okay, I managed to get a version of this bug to pop. In this instance I was using kill-region instead of copy region. I'm going to copy the window -- I don't have a way to animate this but I think it's effective enough. So there's only one file in the 2nd view, and it's not the one I'm editing. You can see I've region selected from line 53 down to to line 60. What I want to do is delete these lines, and I usually use kill for this. So I'm typing You can't see this next bit because of lack of animation, but as noted it was running sbp_kill_region. I moved to a blank section of that file and did a yank I hope this helps and hope the screenshot helps. |
Another couple of tidbits that may or may not be relevant:
I guess all I can say here is that I did not have multiple views into the same buffer, but I did have two windows open (however the buffer was only in one view in one window -- that other one was a settings window). |
This sounds very weird, and very different to what I am wrestling with. And yes, I am still wrestling with it but I think I cracked it today. Still playing around with it to see if I get any surprises ... I will try to look at this in the coming days. I am super busy ... Cheers for paying enough attention for this detailed report. |
Hi - sorry for all the time that has gone by. Day job, etc. I just released a new version. Some things have changed, including some things a lot. Do you want to see if this is still an issue? |
I haven't been able to nail this down further just yet, but there's been a behavior that's happening with increased frequency and it's a little weird.
This is intermittent, and usually closing Sublime and reopening it will make the part where region deselects happen correctly. And it does appear as if the text is getting copied to the kill ring. Just requires an extra step to kill the region (C-g or ESC) which can be awkward.
I'll try to file more information as it becomes available.
The text was updated successfully, but these errors were encountered: