comparison src/popupmnu.c @ 11127:506f5d8b7d8b v8.0.0451

patch 8.0.0451: some macros are in lower case commit https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 12 19:22:36 2017 +0100 patch 8.0.0451: some macros are in lower case Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Mar 2017 19:30:05 +0100
parents 778c10516955
children 68d7bc045dbe
comparison
equal deleted inserted replaced
11126:48599a3eae0b 11127:506f5d8b7d8b
333 case 1: p = pum_array[idx].pum_text; break; 333 case 1: p = pum_array[idx].pum_text; break;
334 case 2: p = pum_array[idx].pum_kind; break; 334 case 2: p = pum_array[idx].pum_kind; break;
335 case 3: p = pum_array[idx].pum_extra; break; 335 case 3: p = pum_array[idx].pum_extra; break;
336 } 336 }
337 if (p != NULL) 337 if (p != NULL)
338 for ( ; ; mb_ptr_adv(p)) 338 for ( ; ; MB_PTR_ADV(p))
339 { 339 {
340 if (s == NULL) 340 if (s == NULL)
341 s = p; 341 s = p;
342 w = ptr2cells(p); 342 w = ptr2cells(p);
343 if (*p == NUL || *p == TAB || totwidth + w > pum_width) 343 if (*p == NUL || *p == TAB || totwidth + w > pum_width)
367 { 367 {
368 do 368 do
369 { 369 {
370 size -= has_mbyte 370 size -= has_mbyte
371 ? (*mb_ptr2cells)(rt) : 1; 371 ? (*mb_ptr2cells)(rt) : 1;
372 mb_ptr_adv(rt); 372 MB_PTR_ADV(rt);
373 } while (size > pum_width); 373 } while (size > pum_width);
374 374
375 if (size < pum_width) 375 if (size < pum_width)
376 { 376 {
377 /* Most left character requires 377 /* Most left character requires