From e5993774afab750231d878d4220e2a88199b44be Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Sep 2019 12:28:04 +0100 Subject: [PATCH] Brackets --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 01fbd4e29..6688e5885 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1384,7 +1384,7 @@ def cursorToEndOfMessageScript() -> str: 'function focusOnMessage() {\n' \ " var replyTextArea = document.getElementById('message');\n" \ ' val = replyTextArea.value;\n' \ - ' if (val.length>0) && (val.charAt(val.length-1) != " ") {\n' \ + ' if ((val.length>0) && (val.charAt(val.length-1) != " ")) {\n' \ ' val += " ";\n' \ ' }\n' \ ' replyTextArea.focus();\n' \