Skip to content

Commit

Permalink
refactor: updated code to the new version of updateInput procedure
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 878bd3cd544666b6e9cf696bd92198c27834021344a2b09993d929d04696d931
  • Loading branch information
thindil committed Jan 23, 2024
1 parent 2e9e939 commit be8810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input.nim
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ proc readInput*(maxLength: MaxInputLength = maxInputLength;
showError(message = "Can't print entered character. Reason: ",
e = getCurrentException(), db = db)
updateInput(cursorPosition = cursorPosition, inputString = resultString,
insertMode = false, inputRune = inputRune, db = db)
insertMode = false, inputRune = inputRune)
try:
stdout.writeLine(x = "")
except IOError:
Expand Down
2 changes: 1 addition & 1 deletion src/nish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ proc readUserInput*(inputString: var UserInput; oneTimeCommand: bool;
e = getCurrentException(), db = db)
updateInput(cursorPosition = cursorPosition,
inputString = inputString, insertMode = insertMode,
inputRune = inputRune, db = db)
inputRune = inputRune)
highlightOutput(promptLength = promptLength,
inputString = inputString, commands = commands,
aliases = aliases, oneTimeCommand = oneTimeCommand,
Expand Down

0 comments on commit be8810f

Please sign in to comment.