forked from mirrors/org-mode
Fix issue with truncate-lines and visual-line-mode
* lisp/org.el (org-insert-link): Set truncate-line in the *Org Link* buffer and make sure that it really is set there. See http://thread.gmane.org/gmane.emacs.orgmode/42447
This commit is contained in:
parent
32ac8dd0e5
commit
0db8830733
|
@ -8889,7 +8889,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
|
|||
(reverse org-stored-links) "\n"))))
|
||||
(let ((cw (selected-window)))
|
||||
(select-window (get-buffer-window "*Org Links*" 'visible))
|
||||
(setq truncate-lines t)
|
||||
(with-current-buffer "*Org Links*" (setq truncate-lines) t)
|
||||
(unless (pos-visible-in-window-p (point-max))
|
||||
(org-fit-window-to-buffer))
|
||||
(and (window-live-p cw) (select-window cw)))
|
||||
|
|
Loading…
Reference in New Issue