Merge pull request #2158 from yuhan0/fix-narrow-indirect
Fix interactive call of doom/narrow-buffer-indirectly
This commit is contained in:
commit
cefc218e33
1 changed files with 1 additions and 2 deletions
|
@ -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/"
|
Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
|
||||||
(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))
|
|
||||||
(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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue