From: Thuna Date: Sun, 23 Jan 2022 14:55:48 +0000 (+0100) Subject: Fix tabulated-list-widen-current-column widening wrong column X-Git-Tag: emacs-29.0.90~2831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80098a2830cafe0a09f18c5186bf670a91828fef;p=emacs.git Fix tabulated-list-widen-current-column widening wrong column * tabulated-list.el (tabulated-list-widen-current-column): Use correct comparison operation when checking if point is within the column bounds (bug#53375). Copyright-paperwork-exempt: yes --- diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index 32a046e0fbd..a242ac1899d 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el @@ -739,17 +739,17 @@ Interactively, N is the prefix numeric argument, and defaults to col-width) (while (and (not found) (< col-nb nb-cols)) - (if (> start - (setq total-width - (+ total-width - (max (setq col-width - (cadr (aref tabulated-list-format - col-nb))) - (string-width (aref entry col-nb))) - (or (plist-get (nthcdr 3 (aref tabulated-list-format - col-nb)) - :pad-right) - 1)))) + (if (>= start + (setq total-width + (+ total-width + (max (setq col-width + (cadr (aref tabulated-list-format + col-nb))) + (string-width (aref entry col-nb))) + (or (plist-get (nthcdr 3 (aref tabulated-list-format + col-nb)) + :pad-right) + 1)))) (setq col-nb (1+ col-nb)) (setq found t) (setf (cadr (aref tabulated-list-format col-nb))