mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
lisp/org-colview.el: Update org-columns to respect global-visual-line-mode
* lisp/org-colview.el (org-columns): Prevent enabling `truncate-lines' when `global-visual-line-mode' is enabled. This fixes a bug where `org-columns' overlays were disabling wrapping of lines when `global-visual-line-mode` was already activated, and so therefore expectation was that the lines would continue wrapping. This is because `org-columns' was setting truncate-lines to t, when global-visual-line-mode requires it to be set to nil. The interaction between the two caused the wrapping not to occur.
This commit is contained in:
parent
ab82d6ae25
commit
cb0ef12801
|
@ -879,7 +879,8 @@ When COLUMNS-FMT-STRING is non-nil, use it as the column format."
|
|||
(unless (local-variable-p 'org-colview-initial-truncate-line-value)
|
||||
(setq-local org-colview-initial-truncate-line-value
|
||||
truncate-lines))
|
||||
(setq truncate-lines t)
|
||||
(if (not global-visual-line-mode)
|
||||
(setq truncate-lines t))
|
||||
(dolist (entry cache)
|
||||
(goto-char (car entry))
|
||||
(org-columns--display-here (cdr entry)))))))))
|
||||
|
|
Loading…
Reference in a new issue