bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Unexpected removal of indentation when hitting enter #501

Open pskowronek opened 1 year ago

pskowronek commented 1 year ago

Description Unexpected removal of indentation when hitting enter

Steps to Reproduce

  1. run RSyntaxTextArea Demo Application - gradlew run
  2. add the following text: obraz
  3. hit enter on 5th line
  4. obraz

Expected behavior The indentation should be kept on 6th line (at least this is a behavior observed in other editors)

Actual behavior Indentation is lost on 6th line

Screenshots See steps to reproduce

Additional context Originally reported in https://github.com/mucommander/mucommander/issues/878