aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2004-10-08 17:02:16 +0000
committerEli Zaretskii <[email protected]>2004-10-08 17:02:16 +0000
commita1883913f882a8a6e32bd08bfd8e6f4754b348db (patch)
treebdb7e6cd418df0865cd818d4dab4716de7abea08 /lisp/isearch.el
parent9afed9b1fa5aa59623def395f6229e177e0810d0 (diff)
(isearch-yank-line): C-y yanks to next EOL, not end of current line.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 96a3e0e0ac..45ac5b4d28 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1254,8 +1254,8 @@ might return the position of the end of the line."
(defun isearch-yank-line ()
"Pull rest of line from buffer into search string."
(interactive)
- (isearch-yank-internal 'line-end-position))
-
+ (isearch-yank-internal
+ (lambda () (line-end-position (if (eolp) 2 1)))))
(defun isearch-search-and-update ()
;; Do the search and update the display.