mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
Using empty string instead of space.
This commit is contained in:
@@ -82,7 +82,7 @@ public class AnsiEscapeSequenceRequest
|
||||
|
||||
if (!ansiRequest.Response.EndsWith (ansiRequest.Terminator [^1]))
|
||||
{
|
||||
char resp = string.IsNullOrEmpty (ansiRequest.Response) ? ' ' : ansiRequest.Response.Last ();
|
||||
string resp = string.IsNullOrEmpty (ansiRequest.Response) ? "" : ansiRequest.Response.Last ().ToString ();
|
||||
|
||||
throw new InvalidOperationException ($"Terminator ends with '{resp}'\nand doesn't end with: '{ansiRequest.Terminator [^1]}'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user