diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-07 20:01:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-07 20:01:16 +0100 |
commit | 249591057b4840785c50e41dd850efb8a8faf435 (patch) | |
tree | e9ba171529cf753e7aab0ec9adf5be3fedc17d00 /src/popupmenu.c | |
parent | 9ff7d717aa3176de5c61de340deb93f41c7780fc (diff) |
patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
Diffstat (limited to 'src/popupmenu.c')
-rw-r--r-- | src/popupmenu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c index 9a9bfab1a9..c030cc9e8d 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -101,7 +101,7 @@ pum_display( win_T *pvwin; #endif #ifdef FEAT_RIGHTLEFT - int right_left = State == CMDLINE ? FALSE : curwin->w_p_rl; + int right_left = State == MODE_CMDLINE ? FALSE : curwin->w_p_rl; #endif do @@ -119,7 +119,7 @@ pum_display( // Remember the essential parts of the window position and size, so we // can decide when to reposition the popup menu. pum_window = curwin; - if (State == CMDLINE) + if (State == MODE_CMDLINE) // cmdline completion popup menu pum_win_row = cmdline_row; else @@ -159,7 +159,7 @@ pum_display( { // pum above "pum_win_row" - if (State == CMDLINE) + if (State == MODE_CMDLINE) // for cmdline pum, no need for context lines context_lines = 0; else @@ -191,7 +191,7 @@ pum_display( { // pum below "pum_win_row" - if (State == CMDLINE) + if (State == MODE_CMDLINE) // for cmdline pum, no need for context lines context_lines = 0; else @@ -235,7 +235,7 @@ pum_display( // Calculate column #ifdef FEAT_WILDMENU - if (State == CMDLINE) + if (State == MODE_CMDLINE) // cmdline completion popup menu cursor_col = cmdline_compl_startcol(); else |