Correct screenshot line count

should be: max - min + 1
This commit is contained in:
TEC 2021-01-01 17:38:12 +08:00
parent 0fcbe4c50e
commit f2c7b978ce
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ and the line number of the first line of the region."
(setq screenshot--region-beginning beg
screenshot--region-end end
screenshot--first-line-number (line-number-at-pos beg)
screenshot--total-lines (- (line-number-at-pos end) (line-number-at-pos beg))))
screenshot--total-lines (- (line-number-at-pos end) (line-number-at-pos beg) -1)))
(defun screenshot--setup-buffer ()
"Modify the current buffer to make it appropriate for screenshotting."