diff --git a/winhlp.lua b/winhlp.lua index af6ce32..656db8b 100644 --- a/winhlp.lua +++ b/winhlp.lua @@ -13,7 +13,7 @@ local function alignRight(termlike, length) local tw, th = termlike.getSize() local x, y = termlike.getCursorPos() termlike.setCursorPos(math.min(x, tw-length+1), y) - return math.max(0, tw-length-x) + return math.max(0, tw-length-x+1) end