diff options
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index aa546082..d30a0dbc 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -807,7 +807,8 @@ proc updateReadLineISearch(pager: Pager, linemode: LineMode) = pager.isearchpromise = nil of EDIT: if lineedit.news != "": - pager.iregex = compileSearchRegex(lineedit.news) + pager.iregex = compileSearchRegex(lineedit.news, + pager.config.search.default_flags) pager.container.popCursorPos(true) pager.container.pushCursorPos() if pager.iregex.isSome: @@ -857,7 +858,8 @@ proc updateReadLine*(pager: Pager) = of BUFFER: pager.container.readSuccess(lineedit.news) of SEARCH_F, SEARCH_B: if lineedit.news != "": - pager.regex = pager.checkRegex(compileSearchRegex(lineedit.news)) + pager.regex = pager.checkRegex(compileSearchRegex(lineedit.news, + pager.config.search.default_flags)) pager.reverseSearch = pager.linemode == SEARCH_B pager.searchNext() of GOTO_LINE: |