summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-29 10:37:40 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-29 10:37:40 +0100
commitc207fd2535717030d78f9b92839e5f2ac004cc78 (patch)
treed0f5a98dd1ffa989fd14e9bce0b0420b346eecb7 /src/buffer.c
parent75417d960bd17a5b701cfb625b8864dacaf0cc39 (diff)
patch 9.0.0002: map functionality outside of map.cv9.0.0002
Problem: Map functionality outside of map.c. Solution: Move f_hasmapto() to map.c. Rename a function. (closes #10611)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e775398d02..bbbfdb7814 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1004,8 +1004,8 @@ free_buffer_stuff(
#ifdef FEAT_NETBEANS_INTG
netbeans_file_killed(buf);
#endif
- map_clear_int(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings
- map_clear_int(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs
+ map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings
+ map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs
VIM_CLEAR(buf->b_start_fenc);
}