mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 03:57:58 +00:00
org-agenda-show-new-time: Fix when window is very narrow
* lisp/org-agenda.el (org-agenda-show-new-time): When window is narrower than timestamp, do not try to display timestamps starting at negative column. Reported-by: Nick Römer <nick.romer@skynet.be> Link: https://orgmode.org/list/4196e86e.19136.1891ceef131.Webtop.154@skynet.be
This commit is contained in:
parent
402f72ad4f
commit
7c6302e203
|
@ -10100,8 +10100,10 @@ When called programmatically, FORCE-DIRECTION can be `set', `up',
|
||||||
(line-end-position)
|
(line-end-position)
|
||||||
'(display nil))
|
'(display nil))
|
||||||
(org-move-to-column
|
(org-move-to-column
|
||||||
|
(max
|
||||||
|
1 ;; narrow buffer and wide timestamp
|
||||||
(- (window-max-chars-per-line)
|
(- (window-max-chars-per-line)
|
||||||
(length stamp))
|
(length stamp)))
|
||||||
t)
|
t)
|
||||||
(add-text-properties
|
(add-text-properties
|
||||||
(1- (point)) (line-end-position)
|
(1- (point)) (line-end-position)
|
||||||
|
|
Loading…
Reference in a new issue