Skip to content

Commit

Permalink
Automated JetBrains cleanup
Browse files Browse the repository at this point in the history
Co-authored-by:  <[email protected]>
  • Loading branch information
github-actions[bot] committed Dec 6, 2024
1 parent aed3cbb commit 292771e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public bool CaretVisible

public PixelBufferSize Size { get; private set; }

public bool SupportsComplexEmoji { get => _supportEmoji ?? false; }
public bool SupportsComplexEmoji => _supportEmoji ?? false;

public void SetTitle(string title)
{
Expand Down Expand Up @@ -162,10 +162,10 @@ private void PrepareConsole()
// If the cursor moves 2 positions, it indicates proper rendering of composite surrogate pairs.
(int left, int top) = Console.GetCursorPosition();
WriteText(
$"{Esc.Foreground(Colors.Transparent)}{Esc.Background(Colors.Transparent)}{TestEmoji}");
(int left2, _) = Console.GetCursorPosition();
$"{Esc.Foreground(Colors.Transparent)}{Esc.Background(Colors.Transparent)}{TestEmoji}");
(int left2, _) = Console.GetCursorPosition();
_supportEmoji = left2 - left == 2;
Console.SetCursorPosition(left, top);
Console.SetCursorPosition(left, top);

WriteText(Esc.ClearScreen);
#pragma warning restore CA1303 // Do not pass literals as localized parameters
Expand All @@ -182,7 +182,6 @@ protected bool CheckActualizeTheSize()

protected void ActualizeSize()
{

Size = new PixelBufferSize((ushort)Console.WindowWidth, (ushort)Console.WindowHeight);
Resized?.Invoke();
}
Expand Down

0 comments on commit 292771e

Please sign in to comment.