[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3be5e78 084/184: counsel.el (counsel-git-grep-action): Che
From: |
Oleh Krehel |
Subject: |
[elpa] master 3be5e78 084/184: counsel.el (counsel-git-grep-action): Check re-search-forward |
Date: |
Wed, 16 Oct 2019 13:14:54 -0400 (EDT) |
branch: master
commit 3be5e7846b205e016bac03e4178c6b710511d8ce
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-git-grep-action): Check re-search-forward
Re #2209
---
counsel.el | 12 ++++++------
swiper.el | 1 +
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/counsel.el b/counsel.el
index 5c94bcb..b534541 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1371,9 +1371,9 @@ Typical value: '(recenter)."
(ivy-state-directory ivy-last)))
(goto-char (point-min))
(forward-line (1- (string-to-number line-number)))
- (re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
- (when swiper-goto-start-of-match
- (goto-char (match-beginning 0)))
+ (when (re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
+ (when swiper-goto-start-of-match
+ (goto-char (match-beginning 0))))
(swiper--ensure-visible)
(run-hooks 'counsel-grep-post-action-hook)
(unless (eq ivy-exit 'done)
@@ -2986,9 +2986,9 @@ substituted by the search regexp and file, respectively.
Neither
(goto-char (point-min))
(forward-line (1- line-number)))
(setq counsel-grep-last-line line-number)
- (re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
- (when swiper-goto-start-of-match
- (goto-char (match-beginning 0)))
+ (when (re-search-forward (ivy--regex ivy-text t) (line-end-position)
t)
+ (when swiper-goto-start-of-match
+ (goto-char (match-beginning 0))))
(run-hooks 'counsel-grep-post-action-hook)
(if (eq ivy-exit 'done)
(swiper--ensure-visible)
diff --git a/swiper.el b/swiper.el
index 2766485..5e73ba4 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1585,6 +1585,7 @@ When not running `swiper-isearch' already, start it."
(unless (or res swiper-stay-on-quit)
(goto-char swiper--opoint))
(isearch-clean-overlays)
+ (swiper--ensure-visible)
(unless (or res (string= ivy-text ""))
(cl-pushnew ivy-text swiper-history)))))
- [elpa] master e6171e2 098/184: ivy-hydra.el (ivy-dispatching-done-hydra): Fix for ivy-resume, (continued)
- [elpa] master e6171e2 098/184: ivy-hydra.el (ivy-dispatching-done-hydra): Fix for ivy-resume, Oleh Krehel, 2019/10/16
- [elpa] master 943eb01 108/184: counsel.el (counsel-mark-ring): Goto actual point instead of line, Oleh Krehel, 2019/10/16
- [elpa] master 36045f7 003/184: doc/Changelog.org: Fixup, Oleh Krehel, 2019/10/16
- [elpa] master 4389a26 056/184: ivy-overlay.el (ivy-overlay-show-after): Check window height better, Oleh Krehel, 2019/10/16
- [elpa] master 1332ab0 068/184: counsel.el (counsel-compile-env-pattern): Fix regex typo, Oleh Krehel, 2019/10/16
- [elpa] master beb3aee 080/184: ivy.el (ivy--directory-done): Handle "/ C-j" on remote, Oleh Krehel, 2019/10/16
- [elpa] master e62e7de 090/184: ivy-test.el (ivy-test-run-tests): Fix, Oleh Krehel, 2019/10/16
- [elpa] master 73d9f4a 083/184: Place cursor at the begging of matches (for grep), Oleh Krehel, 2019/10/16
- [elpa] master 361cf87 070/184: ivy-test.el (counsel-find-file-with-dollars): Remove, Oleh Krehel, 2019/10/16
- [elpa] master 7cca04a 088/184: doc/ivy.org: Document the marking feature, Oleh Krehel, 2019/10/16
- [elpa] master 3be5e78 084/184: counsel.el (counsel-git-grep-action): Check re-search-forward,
Oleh Krehel <=
- [elpa] master 4c1f6cd 094/184: ivy-test.el: Update, Oleh Krehel, 2019/10/16
- [elpa] master 47f6427 105/184: counsel.el (counsel-compile): favour project root over default-directory, Oleh Krehel, 2019/10/16
- [elpa] master 09507fc 109/184: counsel.el (counsel-mark-ring): Fix highlight line of selected candidate, Oleh Krehel, 2019/10/16
- [elpa] master 46db1b9 107/184: counsel.el (counsel-mark-ring): Add customize variable to sort or not, Oleh Krehel, 2019/10/16
- [elpa] master c0aa563 112/184: ivy.el (ivy-occur): Set up next-error-function, Oleh Krehel, 2019/10/16
- [elpa] master 1a74a21 110/184: ivy-occur: setup for next-error., Oleh Krehel, 2019/10/16
- [elpa] master 30adc93 115/184: Add actions to counsel-switch-buffer, Oleh Krehel, 2019/10/16
- [elpa] master 892e44a 079/184: doc: Add full text of licences, Oleh Krehel, 2019/10/16
- [elpa] master 4645e89 121/184: swiper.el (swiper-action-copy): Add and bind to "M-o w", Oleh Krehel, 2019/10/16
- [elpa] master 77997ea 120/184: counsel.el (counsel-M-x-transformer): Handle read-only strings, Oleh Krehel, 2019/10/16