              (min-index (seq-min indices))
              (current-index (glof:get current-tab :index))
              (next-index (mesh:find-next-index current-index
-                                               max-index
-                                               indices)))
+                                            max-index
+                                            indices)))
     (if next-index
         (seq-find
          (lambda (tab)

      (_ nil))))

(cl-defun mesh:find-prev-session (current-session sessions)
  (cl-letf* ((current-session-pos (cl-position-if
                                   (lambda (s)
                                     (cl-equalp (glof:get current-session :name)
                                                (glof:get s :name)))
                                   sessions)))
    (pcase (seq-length sessions)
      (1 nil)
      ((guard (zerop current-session-pos))

             (mix-index (seq-min indices))
             (current-index (glof:get current-pane :index))
             (next-index (mesh:find-next-index current-index
                                            max-index
                                            indices)))
    (pcase (seq-length panes)
      (1 nil)
      (_ 
