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
Slave selection strangled by view cliff #1074
Comments
Hi Jeremy, I can't reproduce this. Could you describe what you try to archive here? |
Hi Tom, Thanks for your help; I really appreciate it. I meant to say
Here is a recording: Looking into this further. |
Hmm, for me it is: vis@stitny (master)$ seq 100 | vis - | diff - <(seq 100 | awk '!/9$/')
45a46,53
> 51
> 52
> 53
> 54
> 55
> 56
> 57
> 58
vis@stitny (master)$ And yes, it seems to be fixed by #1075. |
It seems to be different for every run, typical UB. I sometimes get 4x, 5x or 7x. I agree that the commit fixes this but I wonder if there might be a bigger issue which we currently oversee. I'll do some more testing in the next few days/weeks (depending on how quick Felix merges commits and I get time :-) and look at this in depth. On the other hand, it might just be as simple as Jeremy pointed out. @jeremybobbin |
prior to this patch, if you had a visual-line selection after the view, and try to move it(& all other selections) up into the buffer, the selection would appear prematurely. martanne#1074
I'm not too sure how I managed to solve it. I was trying to parse
Just for reference, one of those entries look like this:
Because all of our raided drives only had 2 partions like the above, I just did After teasing out the problem, I figured something was off by one. @tosch42, I believe you're correct in that it's a deeper problem. I will try & find where sel->line is set once I have access to a faster computer. Thank you for both for testing the patch :) |
prior to this patch, if you had a visual-line selection after the view, and try to move it(& all other selections) up into the buffer, the selection would appear prematurely. martanne#1074
I was thinking that the visibility of the cursor shouldn't affect cursor position, That aside, I believe the root of the problem is that To demonstrate:
This is because I will try removing |
Good catch, this one. Thanks for the patch and mcepl and Tom for reviewing! |
prior to this patch, if you had a visual-line selection after the view, and try to move it(& all other selections) up into the buffer, the selection would appear prematurely. #1074
@jeremybobbin What about #1084? |
Yep - I'm able to reproduce that; I'd roll it back. |
aka: "check for EOF before unsetting row, col & line cache in view_coord_get" "fix bug where visual-line selections after view were considered visible" These commits have created more bugs then they fix. Reverting them reintroduces martanne#1074: Slave selection strangled by view cliff. Fixes martanne#1143: Disappearing selection
Hi, given 1bfe132 I'm reopening this. It is still a valid issue but the fix was incorrect. |
BUG
seq 100 | vis - | diff - <(seq 100 | awk '!/9$/')
The above should yield no difference when the following MARTANNE vis keystrokes are done:
This is the output I see instead:
The text was updated successfully, but these errors were encountered: