about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/libregexp.nim2
-rw-r--r--src/local/pager.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bindings/libregexp.nim b/src/bindings/libregexp.nim
index 709a0bc0..7f7b37cf 100644
--- a/src/bindings/libregexp.nim
+++ b/src/bindings/libregexp.nim
@@ -4,7 +4,7 @@ type
     LRE_FLAG_IGNORECASE = "i"
     LRE_FLAG_MULTILINE = "m"
     LRE_FLAG_DOTALL = "s"
-    LRE_FLAG_UTF16 = "u"
+    LRE_FLAG_UNICODE = "u"
     LRE_FLAG_STICKY = "y"
 
   LREFlags* = set[LREFlag]
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 98e29a39..31652817 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1071,7 +1071,7 @@ proc checkRegex(pager: Pager, regex: Result[Regex, string]): Opt[Regex] =
   return ok(regex.get)
 
 proc compileSearchRegex(pager: Pager, s: string): Result[Regex, string] =
-  var flags = {LRE_FLAG_UTF16}
+  var flags = {LRE_FLAG_UNICODE}
   if pager.config.search.ignore_case:
     flags.incl(LRE_FLAG_IGNORECASE)
   return compileSearchRegex(s, flags)