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

ST locks up when moving method declaration #6524

Open
deathaxe opened this issue Nov 1, 2024 · 0 comments
Open

ST locks up when moving method declaration #6524

deathaxe opened this issue Nov 1, 2024 · 0 comments

Comments

@deathaxe
Copy link
Collaborator

deathaxe commented Nov 1, 2024

Description of the bug

A user found ST locking up when moving methods definition lines ending with { around.

see: https://forum.sublimetext.com/t/bug-crashes-when-shifting-a-line-upwards-in-a-java-file/74069

Steps to reproduce

  1. Start ST in SAFE MODE.

  2. Create new Java file and paste

    class Class {
    
        public 
        foo.bar();
        public void method() {
        }
    }
  3. set caret into line public void method() {

  4. try to move line upwards with ctrl+shift+up

Expected behavior

Line is moved upwards, resulting in

class Class {

   public 
   public void method() {
   foo.bar();
   }
}

Actual behavior

ST locks up.

ST doesn't lock up if method is cut and pasted between public and foo.bar() lines.

Removing line with single public or merging it with foo.bar() also causes the issue not being triggered.

The following works fine...

class Class {

   foo.bar();
   public void method() {
   }
}

or

class Class {

   public foo.bar();
   public void method() {
   }
}

Sublime Text build number

4180, 4183

Operating system & version

Windows 11

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

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

1 participant