Merge pull request #2158 from yuhan0/fix-narrow-indirect

Fix interactive call of doom/narrow-buffer-indirectly
This commit is contained in:
Henrik Lissner 2019-12-08 01:01:31 -05:00 committed by GitHub
commit cefc218e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,8 +179,7 @@ narrowing doesn't affect other windows displaying the same buffer. Call
Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
(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))))
(unless (region-active-p)
(setq beg (line-beginning-position)
end (line-end-position)))