Skip to content

Commit

Permalink
Thu 15 Apr 2021 09:40:22
Browse files Browse the repository at this point in the history
  • Loading branch information
mullikine committed Apr 14, 2021
1 parent de98fdd commit 62aa504
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pen-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
(defun pen-surrounding-text (&optional window-line-size)
(if (not window-line-size)
(setq window-line-size 20))
(str (buffer-substring (- (point) (save-excursion
(dotimes) 10)) (max 1 (- (point) 1000)))))
(str (buffer-substring (- (point)
(save-excursion
(ntimes window-line-size (previous-line))
(point))
10) (max 1 (- (point) 1000)))))

(ntimes 5 (message "hi"))

Expand Down

0 comments on commit 62aa504

Please sign in to comment.