From 4d485f4e7e69d575f73f0b0911390794904d7adf Mon Sep 17 00:00:00 2001 From: Ralf Wisser Date: Fri, 5 May 2023 10:00:19 +0200 Subject: [PATCH] rtrim statement before synchronization --- .../gui/net/sf/jailer/ui/databrowser/sqlconsole/SQLConsole.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/gui/net/sf/jailer/ui/databrowser/sqlconsole/SQLConsole.java b/src/main/gui/net/sf/jailer/ui/databrowser/sqlconsole/SQLConsole.java index 3f46c7246..9d86527c3 100644 --- a/src/main/gui/net/sf/jailer/ui/databrowser/sqlconsole/SQLConsole.java +++ b/src/main/gui/net/sf/jailer/ui/databrowser/sqlconsole/SQLConsole.java @@ -2728,6 +2728,7 @@ public void setSync(boolean sync) { private void syncStatement(String statement) { if (doSync) { + statement = UIUtil.rtrim(statement); Pair pos = getCurrentStatementPos(); if (pos != null) { editorPane.replaceRange(statement, pos.a, pos.b);