Skip to content

Commit

Permalink
Ensure point is at start of new content in rg-filter-hook (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajva committed Dec 26, 2020
1 parent 77c5f80 commit 7055a67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rg-result.el
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,10 @@ This function is called from `compilation-filter-hook'."
;; Delete all remaining escape sequences
(goto-char beg)
(while (re-search-forward "\033\\[[0-9;]*[0mK]" end 1)
(replace-match "" t t))))
(run-hooks 'rg-filter-hook)))
(replace-match "" t t))

(goto-char beg)
(run-hooks 'rg-filter-hook)))))

;; The regexp and filter functions below were taken from ag.el
;; Kudos to the people from https://github.com/Wilfred/ag.el for these.
Expand Down

0 comments on commit 7055a67

Please sign in to comment.