diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-15 14:06:26 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-15 14:06:33 +0200 |
commit | 2d4c5f0b8594c85a4877da3dd9527cab3066dd17 (patch) | |
tree | 429f7937bb2b1a02f71da56da09cecb10deb2daf /lisp/emacs-lisp/vtable.el | |
parent | 8e464272bdffeb6eb61c3335caea4b415e569549 (diff) | |
download | emacs-2d4c5f0b8594c85a4877da3dd9527cab3066dd17.tar.gz emacs-2d4c5f0b8594c85a4877da3dd9527cab3066dd17.tar.bz2 emacs-2d4c5f0b8594c85a4877da3dd9527cab3066dd17.zip |
Enable dragging resizing final column in vtable
* lisp/emacs-lisp/vtable.el (vtable--insert-line): Insert the
divider after the final column, too, so that the size can be
dragged.
Diffstat (limited to 'lisp/emacs-lisp/vtable.el')
-rw-r--r-- | lisp/emacs-lisp/vtable.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 525dc9359ff..7148844b638 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -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)) |