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)
|
||||
'(display nil))
|
||||
(org-move-to-column
|
||||
(- (window-max-chars-per-line)
|
||||
(length stamp))
|
||||
(max
|
||||
1 ;; narrow buffer and wide timestamp
|
||||
(- (window-max-chars-per-line)
|
||||
(length stamp)))
|
||||
t)
|
||||
(add-text-properties
|
||||
(1- (point)) (line-end-position)
|
||||
|
|
Loading…
Reference in New Issue