mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 10:48:18 +00:00
*: Move some dictionary functions to typval.h and use char*
Also fixes buffer reusage in setmatches() and complete().
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "nvim/screen.h" // for StlClickRecord
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/eval.h"
|
||||
#include "nvim/macros.h"
|
||||
|
||||
// Values for buflist_getfile()
|
||||
enum getf_values {
|
||||
@@ -91,8 +92,8 @@ static inline void buf_set_changedtick(buf_T *const buf, const int changedtick)
|
||||
static inline void buf_set_changedtick(buf_T *const buf, const int changedtick)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
dictitem_T *const changedtick_di = dict_find(
|
||||
buf->b_vars, (char_u *)"changedtick", sizeof("changedtick") - 1);
|
||||
dictitem_T *const changedtick_di = tv_dict_find(
|
||||
buf->b_vars, S_LEN("changedtick"));
|
||||
assert(changedtick_di != NULL);
|
||||
assert(changedtick_di->di_tv.v_type == VAR_NUMBER);
|
||||
assert(changedtick_di->di_tv.v_lock == VAR_FIXED);
|
||||
|
Reference in New Issue
Block a user