summaryrefslogtreecommitdiff
path: root/helm-occur.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2019-07-03 09:10:08 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2019-07-03 09:10:08 +0200
commit571ecad6642391d1f0177e051c694b1fefe21b5d (patch)
treef64711db3541c07a5339af8ac8b6215d18fc0528 /helm-occur.el
parent28f4ef66d799a5cee5f5652784b7cae860062e96 (diff)
Fix multi match with beginning of line regexp (#2163)
* helm-occur.el (helm-occur-build-sources): Fix regexp.
Diffstat (limited to 'helm-occur.el')
-rw-r--r--helm-occur.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-occur.el b/helm-occur.el
index 9c3e2d28..4fed01e5 100644
--- a/helm-occur.el
+++ b/helm-occur.el
@@ -200,7 +200,7 @@ engine beeing completely different and also much faster."
candidate)
(match-string 2 candidate)))
:search (lambda (pattern)
- (when (string-match "\\`\\^\\(.*\\)" pattern)
+ (when (string-match "\\`\\^\\([^ ]*\\)" pattern)
(setq pattern (concat "^[0-9]* \\{1\\}" (match-string 1 pattern))))
(condition-case _err
(re-search-forward pattern nil t)