comparison src/macros.h @ 28773:d770568e6c98 v8.2.4911

patch 8.2.4911: the mode #defines are not clearly named Commit: https://github.com/vim/vim/commit/249591057b4840785c50e41dd850efb8a8faf435 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 7 20:01:16 2022 +0100 patch 8.2.4911: the mode #defines are not clearly named Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 May 2022 21:15:06 +0200
parents 89c181c99e23
children d0241e74bfdb
comparison
equal deleted inserted replaced
28772:7b07ca0bb292 28773:d770568e6c98
214 # define UTF_COMPOSINGLIKE(p1, p2) utf_iscomposing(utf_ptr2char(p2)) 214 # define UTF_COMPOSINGLIKE(p1, p2) utf_iscomposing(utf_ptr2char(p2))
215 #endif 215 #endif
216 216
217 #ifdef FEAT_RIGHTLEFT 217 #ifdef FEAT_RIGHTLEFT
218 // Whether to draw the vertical bar on the right side of the cell. 218 // Whether to draw the vertical bar on the right side of the cell.
219 # define CURSOR_BAR_RIGHT (curwin->w_p_rl && (!(State & CMDLINE) || cmdmsg_rl)) 219 # define CURSOR_BAR_RIGHT (curwin->w_p_rl && (!(State & MODE_CMDLINE) || cmdmsg_rl))
220 #endif 220 #endif
221 221
222 /* 222 /*
223 * MB_PTR_ADV(): advance a pointer to the next character, taking care of 223 * MB_PTR_ADV(): advance a pointer to the next character, taking care of
224 * multi-byte characters if needed. 224 * multi-byte characters if needed.