Skip to content

Commit

Permalink
Merge pull request #361 from syohex/syohex/360
Browse files Browse the repository at this point in the history
Fix helm-ag persistent action highlight issue
  • Loading branch information
jcs090218 authored May 28, 2020
2 parents fa226f9 + af6111d commit 5defd33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions helm-ag.el
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,13 @@ Default behaviour shows finish and result in mode-line."
"Not documented, CANDIDATE."
(let ((find-func (if helm-ag-use-temp-buffer
#'helm-ag--open-file-with-temp-buffer
#'find-file)))
#'find-file))
(helm-ag-p (assoc-default 'real-to-display (helm-get-current-source))))
(helm-ag--find-file-action candidate find-func (helm-ag--search-this-file-p) t)
(helm-highlight-current-line)))
(let ((helm-input (if helm-ag-p
(concat helm-ag--last-query " " helm-input)
helm-input)))
(helm-highlight-current-line))))

(defun helm-ag--validate-regexp (regexp)
"Not documented, REGEXP."
Expand Down

0 comments on commit 5defd33

Please sign in to comment.