buildersbrewery / sublime-lsl

LSL for Sublime Text 4073+ with linting, tooltips & completions with your indent style of choice.
ISC License
20 stars 3 forks source link

Wrong cursor-position after new-line (ENTER) #4

Closed Lunardis closed 6 years ago

Lunardis commented 6 years ago

Hello again,

my indention-style is K & R, and it works when it comes to autocompletions. But something odd happens when I press the ENTER for the new line. Instead of being indented with 4 characters it suddenly doesn't indent and is on the same level as the parent.

I thought it is because the indention-styles and changed to others, but it seems not related with this selection.

How can I recover the default behavior again?

Expected behavior (see cursor)

default {
    if(x) { // <- Press ENTER
        |
    }
}

Actual behavior (see cursor)

default {
    if(x) { // <- Press ENTER_
    |
    }
}

Steps to reproduce

Press Enter on the position where the comment starts with the // characters in an LSL document.

Environment

=BB= LSL:
    version: 1.4.1
    installed via Package Control: True

Sublime Text:
    channel: stable
    build: 3143
    portable: False
    platform: MacOS Sierra ( 10.12.6 )
    architecture: x64
buildersbrewery commented 6 years ago

will be fixed in the next release

buildersbrewery commented 6 years ago

@Lunardis As a temporary work-around you can manually edit Packages/=BB= LSL/.sublime/metadata/LSL General.tmPreferences and adjust settings there accordingly.

image

buildersbrewery commented 6 years ago

Sneak Preview

requires Build 3154+

indent_styles