Hi, Bram and Cesar
2012/10/22(Mon) 9:28:21 UTC+9 Cesar:
> I'm building vim on windows 7.
>
> By updating from 692 to 709 I got the following problem:
>
> If I open 'gvim -N -u NONE file' and I type something, say foo, and if I
>
> want to change a character, say f, to n using r in normal mode, it
>
> doesn't work. I always get the same character.
>
>
>
> Many thanks in advance,
I wrote a patch.
Please check.
Best Regards,
--
Hirohito Higashi
--
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
diff -r 06e088d016ad src/normal.c
--- a/src/normal.c Sun Oct 21 23:56:05 2012 +0200
+++ b/src/normal.c Mon Oct 22 11:33:43 2012 +0900
@@ -1086,7 +1086,7 @@
ca.nchar = ca.extra_char;
idx = find_command(ca.cmdchar);
}
- else if (ca.nchar == 'n' || ca.nchar == 'N')
+ else if ((ca.nchar == 'n' || ca.nchar == 'N') && !stuff_empty())
ca.oap->op_type = get_op_type(*cp, NUL);
else if (*cp == Ctrl_BSL)
{