Skip to content

Commit

Permalink
refactor: removed unused parameter from updateInput
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 7546d00923783d4eb1a1fee74fb21d443e76a3cd60594c296609a102742f8899
  • Loading branch information
thindil committed Jan 23, 2024
1 parent b96e52c commit 2e9e939
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/input.nim
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,14 @@ proc moveCursor*(inputChar: char; cursorPosition: var Natural;
e = getCurrentException(), db = db)

proc updateInput*(cursorPosition: var Natural; inputString: var UserInput;
insertMode: bool; inputRune: string; db) {.sideEffect, raises: [], tags: [
insertMode: bool; inputRune: string) {.sideEffect, raises: [], tags: [
WriteIOEffect, RootEffect], contractual.} =
## Update the user's input with the new Unicode character
##
## * cursorPosition - the current position of cursor in the user's input
## * inputString - the user's input's content
## * insertMode - if true, the input is in the insert (replace) mode
## * inputRune - the Unicode character to enter to the user's input
## * db - the connection to the shell's database
##
## Returns the new cursor position as modified cursorPosition and the modified user's
## input's content as inputString
Expand Down

0 comments on commit 2e9e939

Please sign in to comment.