mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
nsmarks: initial commit
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include "nvim/indent_c.h"
|
||||
#include "nvim/main.h"
|
||||
#include "nvim/mark.h"
|
||||
#include "nvim/mark_extended.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/memline.h"
|
||||
#include "nvim/memory.h"
|
||||
@@ -816,6 +817,7 @@ static void free_buffer_stuff(buf_T *buf, int free_flags)
|
||||
}
|
||||
uc_clear(&buf->b_ucmds); // clear local user commands
|
||||
buf_delete_signs(buf, (char_u *)"*"); // delete any signs
|
||||
extmark_free_all(buf); // delete any extmarks
|
||||
bufhl_clear_all(buf); // delete any highligts
|
||||
map_clear_int(buf, MAP_ALL_MODES, true, false); // clear local mappings
|
||||
map_clear_int(buf, MAP_ALL_MODES, true, true); // clear local abbrevs
|
||||
@@ -5496,6 +5498,7 @@ void bufhl_clear_line_range(buf_T *buf,
|
||||
linenr_T line_start,
|
||||
linenr_T line_end)
|
||||
{
|
||||
// TODO(bfredl): implement kb_itr_interval to jump directly to the first line
|
||||
kbitr_t(bufhl) itr;
|
||||
BufhlLine *l, t = BUFHLLINE_INIT(line_start);
|
||||
if (!kb_itr_get(bufhl, &buf->b_bufhl_info, &t, &itr)) {
|
||||
|
Reference in New Issue
Block a user