Hi Christian Brabandt and Bram,

How to reproduce:
1. Start pure vim
    $ vim -N -u NONE

2. Change 'nrformats' option to add 'alpha'
    :set nrformats+=alpha

3. Buffer changed to 'a ' and move cursor on 'a'.
    ia <Esc>0

4. Increment on 'a'
    <C-A>

Expected behavior:
- 'a' increment to 'b' and cursor position stay on 'b'.

Actual behavior:
- 'a' increment to 'b'. but cursor move to right.


I attached patch.
Please check this.

Chiris.B>
I was wondering if you could add a test code for this regression.

Thanks
--
Best regards,
Hirohito Higashi (a.k.a h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ops.c b/src/ops.c
--- a/src/ops.c
+++ b/src/ops.c
@@ -5584,6 +5584,7 @@
 	    did_change = TRUE;
 	    (void)del_char(FALSE);
 	    ins_char(firstdigit);
+	    curwin->w_cursor.col = col;
 	}
 	else
 	{

Raspunde prin e-mail lui