Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 03f4801

Browse files
committed
fixed semicolon reformatting in string
1 parent 0234a77 commit 03f4801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UI/Components/EditorElement.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public partial class EditorElement : UserControl
6060
private bool SelectionIsHighlited;
6161
private bool WantFoldingUpdate;
6262

63-
public BracketHighlightHelpers bracketHelper = new BracketHighlightHelpers();
63+
public BracketHighlightHelpers bracketHelper = new();
6464

6565
public EditorElement()
6666
{
@@ -896,7 +896,7 @@ public void TextArea_TextEntered(object sender, TextCompositionEventArgs e)
896896
{
897897
if (Program.OptionsObject.Editor_ReformatLineAfterSemicolon)
898898
{
899-
if (e.Text == ";")
899+
if (e.Text == ";" && !bracketHelper.CheckForString(editor.Document, editor.CaretOffset - 1))
900900
{
901901
if (editor.CaretOffset >= 0)
902902
{

0 commit comments

Comments
 (0)