diff --git a/www/code/inner.js b/www/code/inner.js index 545d954e4..f155eee6a 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -305,7 +305,7 @@ define([ $removeAuthorColorsButton.click(function() { selfrom = editor.getCursor("from"); selto = editor.getCursor("to"); - if (selfrom == selto) { + if (!editor.somethingSelected() || selfrom == selto) { editor.getAllMarks().forEach(marker => marker.clear()); } else { editor.findMarks(selfrom, selto).forEach(marker => marker.clear());