未验证 提交 cb522452 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #13463 from dbeaver/text-presentation-selection-clear#12129

#12129 Clear selection after changing display mode in text presentation
......@@ -32,6 +32,7 @@ import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.printing.PrintDialog;
import org.eclipse.swt.printing.Printer;
......@@ -557,7 +558,9 @@ public class PlainTextPresentation extends AbstractPresentation implements IAdap
@Override
public void changeMode(boolean recordMode) {
text.setSelection(0);
text.setBlockSelectionBounds(new Rectangle(0, 0, 0, 0));
curSelection = null;
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册