Browse Source

collapse only if necessary

Gildas 6 years ago
parent
commit
24d858042d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

+ 1 - 1
extension/ui/content/content-ui-editor-web.js

@@ -491,8 +491,8 @@
 							highlightNodes = false;
 						}
 					}
+					range.collapse();
 				}
-				range.collapse();
 				highlightedNodes.forEach(node => highlightNode(node));
 			}
 		}