Hi Bram!
On Mi, 13 Mär 2013, Bram Moolenaar wrote:
>
> Patch 7.3.859
> Problem: 'ambiwidth' must be set by the user.
> Solution: Detects East Asian ambiguous width (UAX #11) state of the terminal
> at the start-up time and 'ambiwidth' accordingly. (Hayaki Saito)
> Files: src/main.c, src/option.c, src/term.c, src/term.h,
> src/proto/term.pro
There is another problem with this patch:
term.c: In function 'check_termcode':
term.c:4137:13: warning: declaration of 'p' shadows a previous local [-Wshadow]
term.c:3875:13: warning: shadowed declaration is here [-Wshadow]
diff --git a/src/term.c b/src/term.c
--- a/src/term.c
+++ b/src/term.c
@@ -4134,15 +4134,15 @@
/* eat it when it has 2 arguments and ends in 'R' */
if (j == 1 && tp[i] == 'R')
{
- char *p = NULL;
+ char *q = NULL;
u7_status = U7_GOT;
if (extra == 2)
- p = "single";
+ q = "single";
else if (extra == 3)
- p = "double";
- if (p != NULL)
- set_option_value((char_u *)"ambw", 0L, (char_u *)p, 0);
+ q = "double";
+ if (q != NULL)
+ set_option_value((char_u *)"ambw", 0L, (char_u *)q, 0);
key_name[0] = (int)KS_EXTRA;
key_name[1] = (int)KE_IGNORE;
slen = i + 1;
Mit freundlichen Grüßen
Christian
--
Ißt der Bauer Stoppelrüben, kommt die Blähung dann in Schüben.
--
--
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/groups/opt_out.