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

Rectangular selection changes on scroll #2351

Closed
ctrlcctrlv opened this issue Feb 10, 2020 · 1 comment
Closed

Rectangular selection changes on scroll #2351

ctrlcctrlv opened this issue Feb 10, 2020 · 1 comment

Comments

@ctrlcctrlv
Copy link
Sponsor Contributor

Consider the output:

SUMMARY: AddressSanitizer: heap-use-after-free ../gdraw/ggdkdraw.c:261 in _GGDKDraw_OnWindowDestroyed
Shadow bytes around the buggy address:
  0x0c207fff9660: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c207fff9670: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
  0x0c207fff9680: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c207fff9690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
  0x0c207fff96a0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
=>0x0c207fff96b0: fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fa
  0x0c207fff96c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c207fff96d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
  0x0c207fff96e0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c207fff96f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
  0x0c207fff9700: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd

Create a bunch of lines containing anything, create the output, then more lines, so you can scroll.

Ctrl-Alt-Shift to create a rectangular selection containing:

fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fa
fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd

When you scroll down, the selection will change to cover the beginning of the lines. I think this bug is due to #2284, but did not get time to test before that commit.

@kovidgoyal
Copy link
Owner

Quite possible that PR caused it will look into it when I have a moment.
I really need to create a testing system for selections. It is
sufficiently hairy and full of corner cases.

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