diff options
| author | Marc Finet <m.dreadlock@gmail.com> | 2014-11-27 23:04:04 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2014-11-28 09:40:24 +0000 |
| commit | 2598010adfea1d0e42f4e2fa393290ded423cf60 (patch) | |
| tree | 01d23c3930d95b5da729a8e65d9b2453efff0a78 | |
| parent | 33805: rewrite zshparams intro, tweak formatting (diff) | |
| download | zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar.gz zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar.bz2 zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar.lz zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar.xz zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.tar.zst zsh-2598010adfea1d0e42f4e2fa393290ded423cf60.zip | |
33815: Fix word transposition bug.
With a one-character word the wrong two words could be transposed.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Zle/zle_word.c | 1 |
2 files changed, 5 insertions, 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> * 33805: Doc/Zsh/params.yo: rewrite intro, tweak formatting diff --git a/Src/Zle/zle_word.c b/Src/Zle/zle_word.c index 301b18d4a..cb5e5dbe5 100644 --- a/Src/Zle/zle_word.c +++ b/Src/Zle/zle_word.c @@ -690,7 +690,6 @@ transposewords(UNUSED(char **args)) DECPOS(pos); if (zleline[pos] == ZWC('\n')) return 1; - x = pos; } for (p4 = x; p4 != zlell && ZC_iword(zleline[p4]); INCPOS(p4)) ; |
