1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Change multiline beep guard clauses to single line formatting.

This commit is contained in:
Doug Kearns
2009-06-02 19:41:22 +10:00
parent e762b6f9d4
commit 09d8af9044
8 changed files with 12 additions and 46 deletions

View File

@@ -546,10 +546,7 @@ function Editor() //{{{
let text = getEditor().value;
let pos = getEditor().selectionStart;
if (pos >= text.length)
{
liberator.beep();
return;
}
return void liberator.beep();
let chr = text[pos];
getEditor().value = text.substring(0, pos) +
(chr == chr.toLocaleLowerCase() ? chr.toLocaleUpperCase() : chr.toLocaleLowerCase()) +