From 3d41699d8f1319b78ebbf9906d9820d9a5781dc8 Mon Sep 17 00:00:00 2001 From: binarycat Date: Thu, 10 Mar 2022 11:18:31 -0500 Subject: [PATCH] fix indentation --- code/ui/prompt.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ui/prompt.lua b/code/ui/prompt.lua index fc0bf7d..36ea8b1 100644 --- a/code/ui/prompt.lua +++ b/code/ui/prompt.lua @@ -4,10 +4,10 @@ local function backspace(text) local byteoffset = utf8.offset(text, -1) if byteoffset then - -- remove the last UTF-8 character. - -- string.sub operates on bytes rather than UTF-8 characters, - -- so we couldn't do string.sub(text, 1, -2). - return string.sub(text, 1, byteoffset - 1) + -- remove the last UTF-8 character. + -- string.sub operates on bytes rather than UTF-8 characters, + -- so we couldn't do string.sub(text, 1, -2). + return string.sub(text, 1, byteoffset - 1) end return ""