Mercurial > vim
comparison src/screen.c @ 13314:65c3e8259124 v8.0.1531
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
commit https://github.com/vim/vim/commit/cafafb381a04e33f3ce9cd15dd9f94b73226831f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 22 21:07:09 2018 +0100
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Problem: Cannot use 24 bit colors in MS-Windows console.
Solution: Add support for vcon. (Nobuhiro Takasaki, Ken Takasaki,
fixes #1270, fixes #2060)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 22 Feb 2018 21:15:05 +0100 |
parents | ae312df8d0ab |
children | da2a9e217200 |
comparison
equal
deleted
inserted
replaced
13313:97fb19f36653 | 13314:65c3e8259124 |
---|---|
2175 } | 2175 } |
2176 /* | 2176 /* |
2177 * End of loop over all window lines. | 2177 * End of loop over all window lines. |
2178 */ | 2178 */ |
2179 | 2179 |
2180 #ifdef FEAT_VTP | |
2181 /* Rewrite the character at the end of the screen line. */ | |
2182 if (use_vtp()) | |
2183 { | |
2184 int i; | |
2185 | |
2186 for (i = 0; i < Rows; ++i) | |
2187 # ifdef FEAT_MBYTE | |
2188 if (enc_utf8) | |
2189 if ((*mb_off2cells)(LineOffset[i] + Columns - 2, | |
2190 LineOffset[i] + screen_Columns) > 1) | |
2191 screen_draw_rectangle(i, Columns - 2, 1, 2, FALSE); | |
2192 else | |
2193 screen_draw_rectangle(i, Columns - 1, 1, 1, FALSE); | |
2194 else | |
2195 # endif | |
2196 screen_char(LineOffset[i] + Columns - 1, i, Columns - 1); | |
2197 } | |
2198 #endif | |
2180 | 2199 |
2181 if (idx > wp->w_lines_valid) | 2200 if (idx > wp->w_lines_valid) |
2182 wp->w_lines_valid = idx; | 2201 wp->w_lines_valid = idx; |
2183 | 2202 |
2184 #ifdef FEAT_SYN_HL | 2203 #ifdef FEAT_SYN_HL |