Skip to content

Commit

Permalink
Use let 'for' local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HollowMan6 committed Jul 5, 2020
1 parent d5279fb commit 9a6ab26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mindmap/eaf-mindmap.el
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@
(end-of-line)
(backward-char 1)
(point)))))
(setq loop-times (/ (- (length header-string) 1) 2))
(let ((loop-times (/ (- (length header-string) 1) 2)))
(while (> loop-times 0)
(setq loop-times (- loop-times 1))
(setq header-string (string-remove-prefix "*" header-string)))
(setq header-string (string-remove-prefix "*" header-string))))
(setq org-parse-data (concat org-parse-data (format "%s%s\n" header-string content-string)))))

(with-temp-file org-file-path
Expand Down

0 comments on commit 9a6ab26

Please sign in to comment.