[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe dbcd5a8 159/195: simplify get next beginni
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe dbcd5a8 159/195: simplify get next beginning position |
Date: |
Sat, 3 Oct 2020 07:12:05 -0400 (EDT) |
branch: externals/ivy-posframe
commit dbcd5a834d0a0407f13f3019d2812546214d0e41
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
simplify get next beginning position
(save-excursion (line-move 1 'noerror) (beginning-of-line) (point))
equals (line-beginning-position 2).
---
ivy-posframe.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 6590d9d..5392f6e 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -491,8 +491,7 @@ selection, non-nil otherwise."
(remove-text-properties 0 (length prompt) '(read-only nil) prompt)
(with-current-buffer ivy-posframe-buffer
(goto-char (point-min))
- (delete-region (point)
- (save-excursion (line-move 1 'noerror)
(beginning-of-line) (point)))
+ (delete-region (point) (line-beginning-position 2))
(insert prompt " \n")
(add-text-properties point (1+ point) '(face
ivy-posframe-cursor)))))))
- [elpa] externals/ivy-posframe 2f1fdbe 169/195: use mapc instead of mapcar, (continued)
- [elpa] externals/ivy-posframe 2f1fdbe 169/195: use mapc instead of mapcar, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f4e17ae 127/195: remove unneeded configure alist variable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 057d628 182/195: Fix for prompt line duplicated issue. #71, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 716ce62 105/195: refactoring; using let-environment, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8ad4668 180/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8abcf52 163/195: define defun-advice function, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0082f43 147/195: add maintainer comment of conao3 at header, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d5e7314 099/195: move ivy-posframe--add-prompt to advice section, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 80036e7 103/195: define keybind with ivy-posframe-keybind-list, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 52ba5f7 156/195: Merge pull request #49 from tttuuu888/work-list2, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe dbcd5a8 159/195: simplify get next beginning position,
Feng Shu <=
- [elpa] externals/ivy-posframe 51d7535 186/195: Remove prompt replication in different approach. #71, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 6545fad 193/195: Fix swiper example, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 2eee01f 166/195: remove unneeded progn, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe fc0a6a7 183/195: Merge pull request #72 from tttuuu888/work-issue-71, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe c24f548 086/195: fix #34., Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 81f2ea1 187/195: Merge pull request #74 from tttuuu888/work-issue-71-3, Feng Shu, 2020/10/03