From 2598010adfea1d0e42f4e2fa393290ded423cf60 Mon Sep 17 00:00:00 2001 From: Marc Finet Date: Thu, 27 Nov 2014 23:04:04 +0100 Subject: 33815: Fix word transposition bug. With a one-character word the wrong two words could be transposed. --- ChangeLog | 5 +++++ Src/Zle/zle_word.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37c129996..30076722e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-28 Peter Stephenson + + * 33815: Src/Zle/zle_word.c: fix word transposition bug where + wrong words could be transposed. + 2014-11-27 Barton E. Schaefer * 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)) ; -- cgit 1.4.1