Pārlūkot izejas kodu

org-list: cycling indentation must not add white spaces at eol

* lisp/org-list.el (org-cycle-item-indentation): each time the
  function moves item back to child position, a white space is added
  to the line.
Nicolas Goaziou 14 gadi atpakaļ
vecāks
revīzija
99aa57fb20
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      lisp/org-list.el

+ 2 - 0
lisp/org-list.el

@@ -2497,6 +2497,8 @@ Return t at each successful move."
 	     (t (back-to-indentation)
 		(org-indent-to-column (car org-tab-ind-state))
 		(looking-at "\\S-+")
+		(goto-char (match-end 0))
+		(delete-region (point) (point-at-eol))
 		(replace-match (cdr org-tab-ind-state))
 		(end-of-line)
 		;; Break cycle