comparison src/popupmenu.c @ 29732:89e1d67814a9 v9.0.0206

patch 9.0.0206: redraw flags are not named specifically Commit: https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 14 14:17:45 2022 +0100 patch 9.0.0206: redraw flags are not named specifically Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Aug 2022 15:30:05 +0200
parents 86eac190ec42
children 0cc9a3001717
comparison
equal deleted inserted replaced
29731:df7f360215b7 29732:89e1d67814a9
941 # ifdef FEAT_PROP_POPUP 941 # ifdef FEAT_PROP_POPUP
942 if (use_popup != USEPOPUP_NONE) 942 if (use_popup != USEPOPUP_NONE)
943 { 943 {
944 pum_position_info_popup(curwin); 944 pum_position_info_popup(curwin);
945 if (win_valid(curwin_save)) 945 if (win_valid(curwin_save))
946 redraw_win_later(curwin_save, SOME_VALID); 946 redraw_win_later(curwin_save, UPD_SOME_VALID);
947 } 947 }
948 # endif 948 # endif
949 if ((curwin != curwin_save && win_valid(curwin_save)) 949 if ((curwin != curwin_save && win_valid(curwin_save))
950 || (curtab != curtab_save 950 || (curtab != curtab_save
951 && valid_tabpage(curtab_save))) 951 && valid_tabpage(curtab_save)))
961 if (ins_compl_active() && !resized) 961 if (ins_compl_active() && !resized)
962 curwin->w_redr_status = FALSE; 962 curwin->w_redr_status = FALSE;
963 963
964 // Return cursor to where we were 964 // Return cursor to where we were
965 validate_cursor(); 965 validate_cursor();
966 redraw_later(SOME_VALID); 966 redraw_later(UPD_SOME_VALID);
967 967
968 // When the preview window was resized we need to 968 // When the preview window was resized we need to
969 // update the view on the buffer. Only go back to 969 // update the view on the buffer. Only go back to
970 // the window when needed, otherwise it will always be 970 // the window when needed, otherwise it will always be
971 // redrawn. 971 // redrawn.
1046 */ 1046 */
1047 void 1047 void
1048 pum_undisplay(void) 1048 pum_undisplay(void)
1049 { 1049 {
1050 pum_array = NULL; 1050 pum_array = NULL;
1051 redraw_all_later(NOT_VALID); 1051 redraw_all_later(UPD_NOT_VALID);
1052 redraw_tabline = TRUE; 1052 redraw_tabline = TRUE;
1053 status_redraw_all(); 1053 status_redraw_all();
1054 #if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX) 1054 #if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
1055 // hide any popup info window 1055 // hide any popup info window
1056 popup_hide_info(); 1056 popup_hide_info();