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

Commit

Permalink
fixed semicolon reformatting in string
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijabase committed Apr 13, 2021
1 parent 0234a77 commit 03f4801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/Components/EditorElement.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public partial class EditorElement : UserControl
private bool SelectionIsHighlited;
private bool WantFoldingUpdate;

public BracketHighlightHelpers bracketHelper = new BracketHighlightHelpers();
public BracketHighlightHelpers bracketHelper = new();

public EditorElement()
{
Expand Down Expand Up @@ -896,7 +896,7 @@ public void TextArea_TextEntered(object sender, TextCompositionEventArgs e)
{
if (Program.OptionsObject.Editor_ReformatLineAfterSemicolon)
{
if (e.Text == ";")
if (e.Text == ";" && !bracketHelper.CheckForString(editor.Document, editor.CaretOffset - 1))
{
if (editor.CaretOffset >= 0)
{
Expand Down

0 comments on commit 03f4801

Please sign in to comment.