Merge pull request #138 from tjefferson08/tj_no_infc_decf

Emacs library fix: use `setq' instead of `infc' and `decf'
master
James Long 2017-01-12 10:26:58 -05:00 committed by GitHub
commit d5a27090e4
1 changed files with 2 additions and 2 deletions

View File

@ -126,14 +126,14 @@ function."
(forward-line len)
(let ((text (buffer-substring start (point))))
(with-current-buffer target-buffer
(decf line-offset len)
(setq line-offset (- line-offset len))
(goto-char (point-min))
(forward-line (- from len line-offset))
(insert text)))))
((equal action "d")
(with-current-buffer target-buffer
(prettier--goto-line (- from line-offset))
(incf line-offset len)
(setq line-offset (+ line-offset len))
(prettier--delete-whole-line len)))
(t
(error "invalid rcs patch or internal error in prettier--apply-rcs-patch")))))))))