From 10d7078eef52514ecf972ea53e1ad1a0646dca68 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Thu, 26 Jan 2012 05:31:14 -0500 Subject: Isolate zero-width spaces in s. --- vimiumFrontend.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vimiumFrontend.js') 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("​"); + // ​ is a zero-width space. the s are necessary because the zero-width space tends to interfere + // with subsequent characters in the same text node. + return query.split("").join(""); } function enterFindMode() { -- cgit v1.2.3