Skip to content

Commit 1f636bd

Browse files
bagajjalmanojampalam
authored andcommitted
removed extra ; remove m while sending color code (#255)
PowerShell/Win32-OpenSSH#1005
1 parent 97b74e8 commit 1f636bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/win32/win32compat/shell-host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ SendCharacter(HANDLE hInput, WORD attributes, wchar_t character)
690690

691691
StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, ";%u", Color);
692692

693-
StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, ";%c", 'm');
693+
StringCbPrintfExA(Next, SizeLeft, &Next, &SizeLeft, 0, "%c", 'm');
694694

695695
if (bUseAnsiEmulation && attributes != pattributes)
696696
WriteFile(hInput, formatted_output, (DWORD)(Next - formatted_output), &wr, NULL);

0 commit comments

Comments
 (0)