avoid warning on [[ regex
@@ -32,6 +32,7 @@ import re
import sys
import time
import traceback
+import warnings
import app.bookmark
import app.config
@@ -1299,6 +1300,9 @@ class Actions(app.mutator.Mutator):
if editorPrefs.get(u'findWholeWord'):
searchFor = r"\b%s\b" % searchFor
#app.log.info(searchFor, flags)
+ with warnings.catch_warnings():
+ # Ignore future warning with '[[' regex.
+ warnings.simplefilter("ignore")
# The saved re is also used for highlighting.
self.findRe = re.compile(searchFor, flags)
self.findBackRe = re.compile(u"%s(?!.*%s.*)" % (searchFor, searchFor),
