mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:8.1.0673: functionality for signs is spread out over several files
Problem: Functionality for signs is spread out over several files.
Solution: Move most of the sign functionality into sign.c. (Yegappan
Lakshmanan, closes vim/vim#3751)
bbea47075c
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include "nvim/screen.h"
|
||||
#include "nvim/search.h"
|
||||
#include "nvim/sha256.h"
|
||||
#include "nvim/sign.h"
|
||||
#include "nvim/spell.h"
|
||||
#include "nvim/state.h"
|
||||
#include "nvim/strings.h"
|
||||
@@ -9286,22 +9287,6 @@ static void f_get(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns information about signs placed in a buffer as list of dicts.
|
||||
static list_T *get_buffer_signs(buf_T *buf)
|
||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
signlist_T *sign;
|
||||
dict_T *d;
|
||||
list_T *const l = tv_list_alloc(kListLenMayKnow);
|
||||
|
||||
FOR_ALL_SIGNS_IN_BUF(buf, sign) {
|
||||
if ((d = sign_get_info(sign)) != NULL) {
|
||||
tv_list_append_dict(l, d);
|
||||
}
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
/// Returns buffer options, variables and other attributes in a dictionary.
|
||||
static dict_T *get_buffer_info(buf_T *buf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user