[kate] [Bug 479717] New: Pressing <ENTER> on } inserts two lines instead of one

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Jan 13 02:14:57 GMT 2024


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

            Bug ID: 479717
           Summary: Pressing <ENTER> on } inserts two lines instead of one
    Classification: Applications
           Product: kate
           Version: 23.08.4
          Platform: Other
                OS: macOS
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-null at kde.org
          Reporter: khvalin at gmail.com
  Target Milestone: ---

Created attachment 164853
  --> https://bugs.kde.org/attachment.cgi?id=164853&action=edit
a sample js demo snippet

SUMMARY
E.g. in the following JS snippet
```
  if (true) {
  |}
```

where the cursor position is marked with |, pressing the ENTER key adds and
extra empty line:
```
  if (true) {


  }
```

STEPS TO REPRODUCE
0. open Kate
1.  Disable enclosing chars
2. Open the attached JS file
3. move your text cursor to the same line as "}" but to the left of the }
4. Press ENTER once

OBSERVED RESULT
that two blank lines were added

EXPECTED RESULT
only one blank like added


SOFTWARE/OS VERSIONS
Windows: 
macOS: ✓
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version:   5.112.0
Qt Version: 5.15.10 (built against 5.15.10)

ADDITIONAL INFORMATION
This could also be a problem with indentation as I only observed this issue on
language - specific files.

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



More information about the kde-mac mailing list