mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #1831: typo & extra args in doom/toggle-narrow-buffer
This commit is contained in:
@ -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)))
|
||||||
|
Reference in New Issue
Block a user