cursor position fix

cursor X and Y coordinates were transposed for the simple string prompts
This commit is contained in:
Jonathan Lamothe 2023-05-30 18:30:49 -04:00
parent afae5ea14a
commit 08e0f96a81

View File

@ -406,4 +406,4 @@ drawSimplePrompt :: String -> Renderer
drawSimplePrompt pStr s = let
fullStr = pStr ++ s^.inputBuffer
strWidth = safeWcswidth fullStr
in showCursor () (Location (0, strWidth)) $ str fullStr
in showCursor () (Location (strWidth, 0)) $ str fullStr