From cd458d267fcd3890dd2cacd0825101a82b2fc283 Mon Sep 17 00:00:00 2001 From: Gunnar Ritter Date: Wed, 19 Jan 2005 12:27:38 +0000 Subject: [PATCH] * The last release erroneously made 'X' work like 'x' in visual mode. It now deletes the character before the cursor again as documented (Bugreport by Matthew Fischer). --- Changes | 3 +++ ex_version.c | 4 ++-- ex_voper.c | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index 2e83009..1913c89 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ Release ... +* The last release erroneously made 'X' work like 'x' in visual mode. It now + deletes the character before the cursor again as documented (Bugreport by + Matthew Fischer). * When a multicolumn character was replaced by another multicolumn character in insert mode, the display was not updated appropriately with terminals other than xterm. diff --git a/ex_version.c b/ex_version.c index 9cd00a0..b5b8904 100644 --- a/ex_version.c +++ b/ex_version.c @@ -70,12 +70,12 @@ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * Sccsid @(#)ex_version.c 1.116 (gritter) 1/16/05 + * Sccsid @(#)ex_version.c 1.117 (gritter) 1/19/05 */ #include "ex.h" -static char *versionstring = "@(#)Version 4.0 (gritter) 1/16/05"; +static char *versionstring = "@(#)Version 4.0 (gritter) 1/19/05"; void printver(void) diff --git a/ex_voper.c b/ex_voper.c index 910a05f..cd0e29a 100644 --- a/ex_voper.c +++ b/ex_voper.c @@ -73,7 +73,7 @@ #ifndef lint #ifdef DOSCCS -static char sccsid[] = "@(#)ex_voper.c 1.24 (gritter) 1/11/05"; +static char sccsid[] = "@(#)ex_voper.c 1.25 (gritter) 1/19/05"; #endif #endif @@ -525,7 +525,8 @@ deleteit: goto errlab; vmacchng(1); while (cnt > 0 && !margin()) { - wcursor += skipright(linebuf, wcursor); + wcursor += dir > 0 ? skipright(linebuf, wcursor) : + skipleft(linebuf, wcursor); cnt--; } opf = deleteop;