From 03027f0f5f9fdc14a705672129e59313867d92fe Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 2 Oct 2006 09:21:47 +0000 Subject: 22804: Mikael Magnusson: allow zero-length narrow-to-region range --- Functions/Zle/narrow-to-region | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Functions') diff --git a/Functions/Zle/narrow-to-region b/Functions/Zle/narrow-to-region index 1f8438789..86fd7ac13 100644 --- a/Functions/Zle/narrow-to-region +++ b/Functions/Zle/narrow-to-region @@ -68,9 +68,7 @@ if [[ -n $_ntr_save || -z $_ntr_restore ]]; then _ntr_end=$CURSOR fi - if (( _ntr_start == _ntr_end )); then - return 1 - elif (( _ntr_start > _ntr_end )); then + if (( _ntr_start > _ntr_end )); then _ntr_swap=_ntr_start _ntr_start=_ntr_end _ntr_end=_ntr_swap -- cgit 1.4.1