Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -28,6 +28,8 @@ static poppos_entry_T poppos_entries[] = {"center", POPPOS_CENTER} }; +static void popup_adjust_position(win_T *wp); + /* * Get option value for "key", which is "line" or "col". * Handles "cursor+N" and "cursor-N". @@ -982,7 +984,7 @@ popup_extra_width(win_T *wp) /* * Adjust the position and size of the popup to fit on the screen. */ - void + static void popup_adjust_position(win_T *wp) { linenr_T lnum;