diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-20 20:13:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-20 20:13:45 +0200 |
commit | 5843f5f37b0632e2d706abc9014bfd7d98f7b02e (patch) | |
tree | 2f1af5fd16214dfdf8edc8717e06a8b0aab81c1a /src/undo.c | |
parent | 9a4a8c4d5993c6371486c895a515c2ad351e9aaa (diff) | |
download | vim-git-5843f5f37b0632e2d706abc9014bfd7d98f7b02e.tar.gz |
patch 8.1.1891: functions used in one file are globalv8.1.1891
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index a23c2638f..b9c203ce2 100644 --- a/src/undo.c +++ b/src/undo.c @@ -123,6 +123,7 @@ static void unserialize_pos(bufinfo_T *bi, pos_T *pos); static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info); static void unserialize_visualinfo(bufinfo_T *bi, visualinfo_T *info); #endif +static void u_saveline(linenr_T lnum); #define U_ALLOC_LINE(size) lalloc(size, FALSE) @@ -3435,7 +3436,7 @@ u_clearall(buf_T *buf) /* * Save the line "lnum" for the "U" command. */ - void + static void u_saveline(linenr_T lnum) { if (lnum == curbuf->b_u_line_lnum) /* line is already saved */ |