Skip to content

Commit

Permalink
rtrim statement before synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed May 5, 2023
1 parent b732d7e commit 4d485f4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,7 @@ public void setSync(boolean sync) {

private void syncStatement(String statement) {
if (doSync) {
statement = UIUtil.rtrim(statement);
Pair<Integer, Integer> pos = getCurrentStatementPos();
if (pos != null) {
editorPane.replaceRange(statement, pos.a, pos.b);
Expand Down

0 comments on commit 4d485f4

Please sign in to comment.