mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
22804: Mikael Magnusson: allow zero-length narrow-to-region range
This commit is contained in:
parent
0fbdf5741f
commit
03027f0f5f
3 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue