File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 128128 (setq multi-shell--live-shells (reverse multi-shell--live-shells))
129129 (dolist (sp multi-shell--live-shells)
130130 (with-current-buffer (cdr sp)
131- (let ((shell-id (multi-shell--name-to-id (buffer-name ))))
131+ (let* ((shell-id (multi-shell--name-to-id (buffer-name )))
132+ (new-shell-id (1- shell-id)))
132133 (when (>= shell-id killed-id)
133- (rename-buffer
134- (multi-shell--form-name-by-id (1- shell-id)))))))
134+ (rename-buffer (multi-shell--form-name-by-id new-shell-id))))))
135+ (let ((index 0 ))
136+ (dolist (sp multi-shell--live-shells)
137+ (let ((new-id (multi-shell--name-to-id (with-current-buffer (cdr sp) (buffer-name )))))
138+ (setf (nth index multi-shell--live-shells) (cons new-id (cdr sp))))
139+ (setq index (1+ index))))
135140 (setq multi-shell--live-shells (reverse multi-shell--live-shells)))
136141
137142;;;### autoload
You can’t perform that action at this time.
0 commit comments