Functions
buffer_updates.c File Reference
#include "nvim/api/private/helpers.h"
#include "nvim/assert.h"
#include "nvim/buffer.h"
#include "nvim/buffer_updates.h"
#include "nvim/extmark.h"
#include "nvim/lua/executor.h"
#include "nvim/memline.h"
#include "nvim/msgpack_rpc/channel.h"

Functions

bool buf_updates_register (buf_T *buf, uint64_t channel_id, BufUpdateCallbacks cb, bool send_buffer)
 
bool buf_updates_active (buf_T *buf)
 
void buf_updates_send_end (buf_T *buf, uint64_t channelid)
 
void buf_updates_unregister (buf_T *buf, uint64_t channelid)
 
void buf_updates_unload (buf_T *buf, bool can_reload)
 
void buf_updates_send_changes (buf_T *buf, linenr_T firstline, int64_t num_added, int64_t num_removed, bool send_tick)
 
void buf_updates_send_splice (buf_T *buf, int start_row, colnr_T start_col, bcount_t start_byte, int old_row, colnr_T old_col, bcount_t old_byte, int new_row, colnr_T new_col, bcount_t new_byte)
 
void buf_updates_changedtick (buf_T *buf)
 
void buf_updates_changedtick_single (buf_T *buf, uint64_t channel_id)
 
void buffer_update_callbacks_free (BufUpdateCallbacks cb)
 

Function Documentation

◆ buf_updates_active()

bool buf_updates_active ( buf_T buf)

◆ buf_updates_changedtick()

void buf_updates_changedtick ( buf_T buf)

◆ buf_updates_changedtick_single()

void buf_updates_changedtick_single ( buf_T buf,
uint64_t  channel_id 
)

◆ buf_updates_register()

bool buf_updates_register ( buf_T buf,
uint64_t  channel_id,
BufUpdateCallbacks  cb,
bool  send_buffer 
)

◆ buf_updates_send_changes()

void buf_updates_send_changes ( buf_T buf,
linenr_T  firstline,
int64_t  num_added,
int64_t  num_removed,
bool  send_tick 
)

◆ buf_updates_send_end()

void buf_updates_send_end ( buf_T buf,
uint64_t  channelid 
)

◆ buf_updates_send_splice()

void buf_updates_send_splice ( buf_T buf,
int  start_row,
colnr_T  start_col,
bcount_t  start_byte,
int  old_row,
colnr_T  old_col,
bcount_t  old_byte,
int  new_row,
colnr_T  new_col,
bcount_t  new_byte 
)

◆ buf_updates_unload()

void buf_updates_unload ( buf_T buf,
bool  can_reload 
)

◆ buf_updates_unregister()

void buf_updates_unregister ( buf_T buf,
uint64_t  channelid 
)

◆ buffer_update_callbacks_free()

void buffer_update_callbacks_free ( BufUpdateCallbacks  cb)