comparison src/popupwin.c @ 17789:0f7ae8010787 v8.1.1891

patch 8.1.1891: functions used in one file are global commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 20 20:13:45 2019 +0200 patch 8.1.1891: functions used in one file are global Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Aug 2019 20:15:07 +0200
parents 4bd21046902b
children 55c167b08c2b
comparison
equal deleted inserted replaced
17788:2cf6b7b53b1d 17789:0f7ae8010787
25 {"topleft", POPPOS_TOPLEFT}, 25 {"topleft", POPPOS_TOPLEFT},
26 {"botright", POPPOS_BOTRIGHT}, 26 {"botright", POPPOS_BOTRIGHT},
27 {"topright", POPPOS_TOPRIGHT}, 27 {"topright", POPPOS_TOPRIGHT},
28 {"center", POPPOS_CENTER} 28 {"center", POPPOS_CENTER}
29 }; 29 };
30
31 static void popup_adjust_position(win_T *wp);
30 32
31 /* 33 /*
32 * Get option value for "key", which is "line" or "col". 34 * Get option value for "key", which is "line" or "col".
33 * Handles "cursor+N" and "cursor-N". 35 * Handles "cursor+N" and "cursor-N".
34 */ 36 */
980 } 982 }
981 983
982 /* 984 /*
983 * Adjust the position and size of the popup to fit on the screen. 985 * Adjust the position and size of the popup to fit on the screen.
984 */ 986 */
985 void 987 static void
986 popup_adjust_position(win_T *wp) 988 popup_adjust_position(win_T *wp)
987 { 989 {
988 linenr_T lnum; 990 linenr_T lnum;
989 int wrapped = 0; 991 int wrapped = 0;
990 int maxwidth; 992 int maxwidth;