https://bugs.kde.org/show_bug.cgi?id=385472

Christoph Cullmann <cullm...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/ktexteditor/commit/f
                   |                            |1b94f2f8367a07e4ed4b8e33f60
                   |                            |61383b3aa44f

--- Comment #8 from Christoph Cullmann <cullm...@kde.org> ---
Git commit f1b94f2f8367a07e4ed4b8e33f6061383b3aa44f by Christoph Cullmann, on
behalf of Waqar Ahmed.
Committed on 23/01/2022 at 18:31.
Pushed by waqar into branch 'master'.

Handle single statement condition blocks better

See test case for full detail of what is fixed. Essentially it is
that if you have something like:

```
    if (true)
        doWork();
```

and the cursor is on the semicolon, pressing enter should decrease
indent level to that of the `if` statement.

A  +8    -0    autotests/input/indent/cstyle/385472/expected
A  +3    -0    autotests/input/indent/cstyle/385472/input.js
A  +7    -0    autotests/input/indent/cstyle/385472/origin
M  +34   -1    src/script/data/indentation/cstyle.js

https://invent.kde.org/frameworks/ktexteditor/commit/f1b94f2f8367a07e4ed4b8e33f6061383b3aa44f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to