Skip to content

Commit

Permalink
Merge pull request #888 from OpenAF/t8
Browse files Browse the repository at this point in the history
Fix formatting issue in askChoose function
  • Loading branch information
nmaguiar authored Dec 22, 2023
2 parents 6c1a653 + 4b5f4e5 commit acb7b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/openaf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9186,8 +9186,8 @@ const askChoose = (aPrompt, anArray, aMaxDisplay) => {
} while (c != 13)
ow.format.string.ansiMoveUp(aMaxDisplay+1)
print("\n\x1b[1A\x1b[0G" + ansiColor(__colorFormat.askPos, "\u2713") + " " + aPrompt + "[" + anArray[option] + "]")
print(anArray.map(r => repeat(r.length + 2, " ")).join("\n"))
ow.format.string.ansiMoveUp(aMaxDisplay*2)
print(range(aMaxDisplay).map(r => repeat(maxSpace + 2, " ")).join("\n"))
ow.format.string.ansiMoveUp(aMaxDisplay+2)
print("\x1B[?25h\n")

return option
Expand Down

0 comments on commit acb7b6f

Please sign in to comment.