changeset 77400:ba8b19b89247

(ido-kill-buffer-at-head, ido-delete-file-at-head): Don't use kill-line.
author Kim F. Storm <storm@cua.dk>
date Sun, 22 Apr 2007 10:37:08 +0000
parents 5341224d266e
children 056df42e4ffd
files lisp/ido.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Sun Apr 22 10:36:45 2007 +0000
+++ b/lisp/ido.el	Sun Apr 22 10:37:08 2007 +0000
@@ -3817,7 +3817,7 @@
 If cursor is not at the end of the user input, delete to end of input."
   (interactive)
   (if (not (eobp))
-      (kill-line)
+      (delete-region (point) (line-end-position))
     (let ((enable-recursive-minibuffers t)
 	  (buf (ido-name (car ido-matches))))
       (when buf
@@ -3835,7 +3835,7 @@
 If cursor is not at the end of the user input, delete to end of input."
   (interactive)
   (if (not (eobp))
-      (kill-line)
+      (delete-region (point) (line-end-position))
     (let ((enable-recursive-minibuffers t)
 	  (file (ido-name (car ido-matches))))
       (if file