comparison src/screen.c @ 10986:62bcadce6c82 v8.0.0382

patch 8.0.0382: warning in tiny build for unused variable commit https://github.com/vim/vim/commit/88e7688edaf6fcf079d3c1b1070c852cfbb28185 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 27 20:33:46 2017 +0100 patch 8.0.0382: warning in tiny build for unused variable Problem: Warning in tiny build for unused variable. (Tony Mechelynck) Solution: Add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Mon, 27 Feb 2017 20:45:04 +0100
parents 5e20c9f96cd5
children b5de553d6062
comparison
equal deleted inserted replaced
10985:09f7827e6d80 10986:62bcadce6c82
4187 } 4187 }
4188 --n_extra; 4188 --n_extra;
4189 } 4189 }
4190 else 4190 else
4191 { 4191 {
4192 #ifdef FEAT_LINEBREAK
4192 int c0; 4193 int c0;
4194 #endif
4193 4195
4194 if (p_extra_free != NULL) 4196 if (p_extra_free != NULL)
4195 { 4197 {
4196 vim_free(p_extra_free); 4198 vim_free(p_extra_free);
4197 p_extra_free = NULL; 4199 p_extra_free = NULL;
4198 } 4200 }
4199 /* 4201 /*
4200 * Get a character from the line itself. 4202 * Get a character from the line itself.
4201 */ 4203 */
4204 #ifdef FEAT_LINEBREAK
4202 c0 = c = *ptr; 4205 c0 = c = *ptr;
4206 #endif
4203 #ifdef FEAT_MBYTE 4207 #ifdef FEAT_MBYTE
4204 if (has_mbyte) 4208 if (has_mbyte)
4205 { 4209 {
4206 mb_c = c; 4210 mb_c = c;
4207 if (enc_utf8) 4211 if (enc_utf8)
4214 { 4218 {
4215 mb_c = utfc_ptr2char(ptr, u8cc); 4219 mb_c = utfc_ptr2char(ptr, u8cc);
4216 /* Overlong encoded ASCII or ASCII with composing char 4220 /* Overlong encoded ASCII or ASCII with composing char
4217 * is displayed normally, except a NUL. */ 4221 * is displayed normally, except a NUL. */
4218 if (mb_c < 0x80) 4222 if (mb_c < 0x80)
4219 c0 = c = mb_c; 4223 {
4224 c = mb_c;
4225 # ifdef FEAT_LINEBREAK
4226 c0 = mb_c;
4227 # endif
4228 }
4220 mb_utf8 = TRUE; 4229 mb_utf8 = TRUE;
4221 4230
4222 /* At start of the line we can have a composing char. 4231 /* At start of the line we can have a composing char.
4223 * Draw it as a space with a composing char. */ 4232 * Draw it as a space with a composing char. */
4224 if (utf_iscomposing(mb_c)) 4233 if (utf_iscomposing(mb_c))