projects
/
platform
/
core
/
dotnet
/
diagnostics.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5703866
)
[Tizen] Patch for an exception on clearline()
accepted/tizen_7.0_unified
tizen_7.0
accepted/tizen/7.0/unified/20230808.172207
author
Hyungju Lee
<leee.lee@samsung.com>
Wed, 2 Aug 2023 06:00:14 +0000
(15:00 +0900)
committer
Hyungju Lee
<leee.lee@samsung.com>
Mon, 7 Aug 2023 10:36:29 +0000
(19:36 +0900)
src/Microsoft.Diagnostics.Repl/ConsoleService.cs
patch
|
blob
|
history
diff --git
a/src/Microsoft.Diagnostics.Repl/ConsoleService.cs
b/src/Microsoft.Diagnostics.Repl/ConsoleService.cs
index 7145a79af3dd2aeefa957ca8a3cf211351ed25a8..5d49805c2300b0e8d0a11c00018676cb511c3cfb 100644
(file)
--- a/
src/Microsoft.Diagnostics.Repl/ConsoleService.cs
+++ b/
src/Microsoft.Diagnostics.Repl/ConsoleService.cs
@@
-269,7
+269,8
@@
namespace Microsoft.Diagnostics.Repl
}
if (m_clearLine == null || m_clearLine.Length != Console.WindowWidth) {
- m_clearLine = "\r" + new string(' ', Console.WindowWidth - 1);
+ int consoleWidth = Console.WindowWidth > 0 ? Console.WindowWidth : 1;
+ m_clearLine = "\r" + new string(' ', consoleWidth - 1);
}
Console.Write(m_clearLine);