Follow up integrate ripgrep into vim. Sort results.
dblume

dblume commited on 2022-04-12 16:58:24
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -287,7 +287,7 @@ function! MaybeSortQuickfix(fn)
287 287
 "    exe 'normal! '  " Doesn't work. Wanted to jump back to where we were.
288 288
     let t = getqflist({'title': 1}).title
289 289
     " Only sort the files if for search-style commands, not "make".
290
-    if stridx(t, "cs ") == 0 || stridx(t, ":gr") == 0 || stridx(t, ":vim") == 0
290
+    if stridx(t, "cs ") == 0 || stridx(t, ":gr") == 0 || stridx(t, ":vim") == 0 || stridx(t, ":rg") == 0
291 291
         call setqflist(sort(getqflist(), a:fn), 'r')
292 292
         call setqflist([], 'r', {'title': t})
293 293
     endif
294 294