Fix #1831: typo & extra args in doom/toggle-narrow-buffer

This commit is contained in:
Henrik Lissner 2019-09-27 11:34:21 -04:00
parent 4a8cef56ea
commit 38e445afe7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -226,11 +226,10 @@ If the current buffer is not an indirect buffer, it is `widen'ed."
"Narrow the buffer to BEG END. If narrowed, widen it."
(interactive
(list (or (bound-and-true-p evil-visual-beginning) (region-beginning))
(or (bound-and-true-p evil-visual-end) (region-end))
current-prefix-arg))
(or (bound-and-true-p evil-visual-end) (region-end))))
(if (buffer-narrowed-p)
(widen)
(unless (region-active-p)
(setq beg (line-beginning-position)
end (line-end-position)))
(marrow-to-region beg end)))
(narrow-to-region beg end)))