Bug 125355 - Beanshell Editor: Correct indentation when Enter is pressed
Summary: Beanshell Editor: Correct indentation when Enter is pressed
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Andreas Heinisch
URL:
Whiteboard: target:6.4.0
Keywords:
Depends on:
Blocks: Beanshell-Editor
  Show dependency treegraph
 
Reported: 2019-05-18 13:34 UTC by Andreas Heinisch
Modified: 2019-07-09 08:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Heinisch 2019-05-18 13:34:55 UTC
Description:
At the moment, when you insert a new line, the cursor always jumps to the beginning of the line regardless of the intendation of the previous line. It should rather stay at the intendation level or create another tab like other IDEs do.

Example 1:
while (true) {
....doSomething(); // hiting enter goes to the new line, rather staying at the correct intendation
}

Example 2:
while (true) { // hiting enter goes to the new line, rather inserting a correct intendation 

Actual Results:
 

Expected Results:
 


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 raal 2019-05-18 14:56:13 UTC
Confirm wit Version: 6.3.0.0.alpha0+
Build ID: 630db80d17616d635cf2e5f1d5a0852428b794a3
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11;
Comment 2 Andreas Heinisch 2019-06-18 13:57:10 UTC
https://gerrit.libreoffice.org/#/c/73371/
Comment 3 Commit Notification 2019-07-09 07:53:22 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/60f7236293bc3bd4a9b2962a5f1f9af6f2998808%5E%21

tdf#125355 Beanshell Editor: Corrected indentation when Enter is pressed

It will be available in 6.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.