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

Calling Ctrl+K, Ctrl+D to skip item, does not skip the item and selects wrong items #2091

Closed
evandrocoan opened this issue Dec 8, 2017 · 9 comments

Comments

@evandrocoan
Copy link

Originally posted on:

  1. https://forum.sublimetext.com/t/find-under-expand-skip-unexpected-behaviour/33852

Summary

Calling Ctrl+K, Ctrl+D to skip item, does not skip the item and selects wrong items

Expected behavior

test 1
|test| 2
|test| 3
|test| 4

Actual behavior

|test| 1
|test| 2
|test| 3
test 4

Steps to reproduce

  1. Create a view with:
    test 1
    test 2
    test 3
    test 4
    
  2. Put the cursor/caret on the start of the line test 3
  3. Press Ctrl+D (find_under_expand) 3 times
  4. Press Ctrl+K, Ctrl+D

Environment

  • Operating system and version:
    • Windows 10 build 15063 x64
    • Mac OS ...
    • Linux ...
  • Monitor:
    • Resolution 1920x1080
    • dpi_scale used in ST 1.0
  • Sublime Text:
    • Build 3156
    • 32 bit
@FichteFoll
Copy link
Collaborator

FichteFoll commented Dec 11, 2017

Via #42, this bug has existed since ST2. I closed that issue as a duplicate because this one has more detailed reproduction steps.

Basically, quick_skip_next always thinks the current search is the lowest selected region, which goes terribly wrong if you wrapped around the end of the file. Because this behavior is so unexpected, I consider it to be major because it may cause you to remove/edit lines you didn't actually intend to by modifiying the selections in an unexpected way.

@BenjaminSchaaf
Copy link
Member

Fixed in build 4080.

@deathaxe deathaxe added this to the Build 4080 milestone Aug 7, 2020
@wbond wbond added the R: fixed label Aug 7, 2020
@gwenzek
Copy link

gwenzek commented Mar 1, 2021

I'm seeing this bug in 4098 on Mac. Am I the only one impacted ?

@FichteFoll
Copy link
Collaborator

I cannot reproduce with the steps given in OP on Linux.

@deathaxe
Copy link
Collaborator

deathaxe commented Mar 1, 2021

Works on Windows, too.

@BenjaminSchaaf
Copy link
Member

@gwenzek Can't reproduce with 4098 on macOS.

@gwenzek
Copy link

gwenzek commented Mar 2, 2021

I made a screen cast of the bug in --safe-mode, just to be sure we are talking about the same thing (and that I'm not crazy)
Please let me know if I can help debugging this further.

I'm on MacOS 10.15.7 in case it might help.

subl_expand_bug.mp4

@FichteFoll
Copy link
Collaborator

Hm, that definitely seems like a related problem, although it's not what was initially reported here. I'll leave this for @BenjaminSchaaf.

@BenjaminSchaaf
Copy link
Member

I've made a new issue for that here: #3986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants