Fix #1831: typo & extra args in doom/toggle-narrow-buffer
This commit is contained in:
parent
4a8cef56ea
commit
38e445afe7
1 changed files with 2 additions and 3 deletions
|
@ -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."
|
"Narrow the buffer to BEG END. If narrowed, widen it."
|
||||||
(interactive
|
(interactive
|
||||||
(list (or (bound-and-true-p evil-visual-beginning) (region-beginning))
|
(list (or (bound-and-true-p evil-visual-beginning) (region-beginning))
|
||||||
(or (bound-and-true-p evil-visual-end) (region-end))
|
(or (bound-and-true-p evil-visual-end) (region-end))))
|
||||||
current-prefix-arg))
|
|
||||||
(if (buffer-narrowed-p)
|
(if (buffer-narrowed-p)
|
||||||
(widen)
|
(widen)
|
||||||
(unless (region-active-p)
|
(unless (region-active-p)
|
||||||
(setq beg (line-beginning-position)
|
(setq beg (line-beginning-position)
|
||||||
end (line-end-position)))
|
end (line-end-position)))
|
||||||
(marrow-to-region beg end)))
|
(narrow-to-region beg end)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue