changeset 43873:2ce5d75bd538

(ibuffer-redisplay-current): Don't move point when redisplaying a line.
author Colin Walters <walters@gnu.org>
date Wed, 13 Mar 2002 02:31:26 +0000
parents 0b8a842490f9
children 96f84561b0ab
files lisp/ibuffer.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ibuffer.el	Wed Mar 13 02:30:32 2002 +0000
+++ b/lisp/ibuffer.el	Wed Mar 13 02:31:26 2002 +0000
@@ -1585,10 +1585,11 @@
     (let ((buf (ibuffer-current-buffer)))
       (when buf
 	(let ((mark (ibuffer-current-mark)))
-	  (delete-region (point) (1+ (line-end-position)))
-	  (ibuffer-insert-buffer-line
-	   buf mark
-	   (ibuffer-current-format))
+	  (save-excursion
+	    (delete-region (point) (1+ (line-end-position)))
+	    (ibuffer-insert-buffer-line
+	     buf mark
+	     (ibuffer-current-format)))
 	  (when ibuffer-shrink-to-minimum-size
 	    (ibuffer-shrink-to-fit)))))))