comparison src/gui_beval.c @ 11121:778c10516955 v8.0.0448

patch 8.0.0448: some macros are in lower case commit https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 12 18:23:53 2017 +0100 patch 8.0.0448: some macros are in lower case Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Mar 2017 18:30:06 +0100
parents 6c8a4d21b873
children 501f46f7644c
comparison
equal deleted inserted replaced
11120:29ee7ffe8df7 11121:778c10516955
82 82
83 vim_free(result); 83 vim_free(result);
84 result = eval_to_string(bexpr, NULL, TRUE); 84 result = eval_to_string(bexpr, NULL, TRUE);
85 85
86 /* Remove one trailing newline, it is added when the result was a 86 /* Remove one trailing newline, it is added when the result was a
87 * list and it's hardly every useful. If the user really wants a 87 * list and it's hardly ever useful. If the user really wants a
88 * trailing newline he can add two and one remains. */ 88 * trailing newline he can add two and one remains. */
89 if (result != NULL) 89 if (result != NULL)
90 { 90 {
91 len = STRLEN(result); 91 len = STRLEN(result);
92 if (len > 0 && result[len - 1] == NL) 92 if (len > 0 && result[len - 1] == NL)
364 int len; 364 int len;
365 pos_T *spos = NULL, *epos = NULL; 365 pos_T *spos = NULL, *epos = NULL;
366 366
367 if (VIsual_active) 367 if (VIsual_active)
368 { 368 {
369 if (lt(VIsual, curwin->w_cursor)) 369 if (LT_POS(VIsual, curwin->w_cursor))
370 { 370 {
371 spos = &VIsual; 371 spos = &VIsual;
372 epos = &curwin->w_cursor; 372 epos = &curwin->w_cursor;
373 } 373 }
374 else 374 else