]> git.eshelyaron.com Git - emacs.git/commitdiff
Enable dragging resizing final column in vtable
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Apr 2022 12:06:26 +0000 (14:06 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Apr 2022 12:06:33 +0000 (14:06 +0200)
* lisp/emacs-lisp/vtable.el (vtable--insert-line): Insert the
divider after the final column, too, so that the size can be
dragged.

lisp/emacs-lisp/vtable.el

index 525dc9359ff47f01bee6ae81b90f622b0bb37a53..7148844b638c59b608e89af9443385ab80d89c90 100644 (file)
@@ -522,8 +522,7 @@ This also updates the displayed table."
                        ellipsis)
                     value))))
                (start (point))
-               ;; Don't insert the separator and the divider after the
-               ;; final column.
+               ;; Don't insert the separator after the final column.
                (last (= index (- (length line) 2))))
            (if (eq (vtable-column-align column) 'left)
                (progn
@@ -552,7 +551,7 @@ This also updates the displayed table."
              (add-face-text-property
               start (point)
               (elt column-colors (mod index (length column-colors)))))
-           (when (and divider (not last))
+           (when divider
              (insert divider)
              (setq start (point))))))
      (cdr line))