On Thu, Jun 25, 2015 at 5:03 PM, Bram Moolenaar <[email protected]> wrote:
> Patch 7.4.757
> Problem:    Cannot detect the background color of a terminal.
> Solution:   Add T_RBG to request the background color if possible. (Lubomir
>             Rintel)
> Files:      src/main.c, src/term.c, src/term.h, src/proto/term.pro
> + #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
> + /*
> +  * Check how the terminal treats ambiguous character width (UAX #11).
> +  * First, we move the cursor to (1, 0) and print a test ambiguous character
> +  * \u25bd (WHITE DOWN-POINTING TRIANGLE) and query current cursor position.
> +  * If the terminal treats \u25bd as single width, the position is (1, 1),
> +  * or if it is treated as double width, that will be (1, 2).
> +  * This function has the side effect that changes cursor position, so
> +  * it must be called immediately after entering termcap mode.
> +  */
> +     void
> + may_req_bg_color()
> + {
> +     if (rbg_status == RBG_GET

That comment looks wrong for that function.

Christ van Willegen
-- 
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

-- 
-- 
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.

Raspunde prin e-mail lui