mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 23:51:14 +02:00
33815: Fix word transposition bug.
With a one-character word the wrong two words could be transposed.
This commit is contained in:
parent
8080ca3a87
commit
2598010adf
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2014-11-28 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
|
* 33815: Src/Zle/zle_word.c: fix word transposition bug where
|
||||||
|
wrong words could be transposed.
|
||||||
|
|
||||||
2014-11-27 Barton E. Schaefer <schaefer@zsh.org>
|
2014-11-27 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 33805: Doc/Zsh/params.yo: rewrite intro, tweak formatting
|
* 33805: Doc/Zsh/params.yo: rewrite intro, tweak formatting
|
||||||
|
|
|
@ -690,7 +690,6 @@ transposewords(UNUSED(char **args))
|
||||||
DECPOS(pos);
|
DECPOS(pos);
|
||||||
if (zleline[pos] == ZWC('\n'))
|
if (zleline[pos] == ZWC('\n'))
|
||||||
return 1;
|
return 1;
|
||||||
x = pos;
|
|
||||||
}
|
}
|
||||||
for (p4 = x; p4 != zlell && ZC_iword(zleline[p4]); INCPOS(p4))
|
for (p4 = x; p4 != zlell && ZC_iword(zleline[p4]); INCPOS(p4))
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue