aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 65ac240c..d70c2009 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -973,8 +973,9 @@ function showFindModeHUDForQuery() {
* We need this so that the find mode HUD doesn't match its own searches.
*/
function insertSpaces(query) {
- // ​ is a zero-width space
- return query.split("").join("&#8203");
+ // &#8203; is a zero-width space. the <span>s are necessary because the zero-width space tends to interfere
+ // with subsequent characters in the same text node.
+ return query.split("").join("<span class='vimiumReset'>&#8203</span>");
}
function enterFindMode() {