mirror of
https://github.com/neovim/neovim.git
synced 2026-08-25 00:21:55 +00:00
Rename some more, fixe borked renaming
This commit is contained in:
@@ -82,7 +82,7 @@ void buf_updates_send_end(buf_T *buf, uint64_t channelid)
|
||||
args.size = 1;
|
||||
args.items = xcalloc(sizeof(Object), args.size);
|
||||
args.items[0] = BUFFER_OBJ(buf->handle);
|
||||
rpc_send_event(channelid, "nvim_buf_updates_end", args);
|
||||
rpc_send_event(channelid, "nvim_buf_detach_event", args);
|
||||
}
|
||||
|
||||
void buf_updates_unregister(buf_T *buf, uint64_t channelid)
|
||||
|
||||
@@ -872,7 +872,7 @@ int do_move(linenr_T line1, linenr_T line2, linenr_T dest)
|
||||
changed_lines(dest + 1, 0, line1 + num_lines, 0L, false);
|
||||
}
|
||||
|
||||
// send nvim_buf_update regarding lines that were deleted
|
||||
// send nvim_buf_lines_event regarding lines that were deleted
|
||||
if (kv_size(curbuf->update_channels)) {
|
||||
buf_updates_send_changes(curbuf, line1 + extra, 0, num_lines, true);
|
||||
}
|
||||
|
||||
@@ -746,7 +746,7 @@ deleteFold (
|
||||
if (last_lnum > 0) {
|
||||
changed_lines(first_lnum, (colnr_T)0, last_lnum, 0L, false);
|
||||
|
||||
// send one nvim_buf_update at the end
|
||||
// send one nvim_buf_lines_event at the end
|
||||
if (kv_size(curbuf->update_channels)) {
|
||||
// last_lnum is the line *after* the last line of the outermost fold
|
||||
// that was modified. Note also that deleting a fold might only require
|
||||
@@ -1608,7 +1608,7 @@ static void foldCreateMarkers(linenr_T start, linenr_T end)
|
||||
if (kv_size(curbuf->update_channels)) {
|
||||
// Note: foldAddMarker() may not actually change start and/or end if
|
||||
// u_save() is unable to save the buffer line, but we send the
|
||||
// nvim_buf_update anyway since it won't do any harm.
|
||||
// nvim_buf_lines_event anyway since it won't do any harm.
|
||||
int64_t num_changed = 1 + end - start;
|
||||
buf_updates_send_changes(curbuf, start, num_changed, num_changed, true);
|
||||
}
|
||||
|
||||
@@ -1921,9 +1921,9 @@ changed_lines(
|
||||
linenr_T lnume, // line below last changed line
|
||||
long xtra, // number of extra lines (negative when deleting)
|
||||
bool do_buf_event // some callers like undo/redo call changed_lines()
|
||||
// and then increment b_changedtick *again*. This flag
|
||||
// allows these callers to send the nvim_buf_update events
|
||||
// after they're done modifying b_changedtick.
|
||||
// and then increment b_changedtick *again*. This flag
|
||||
// allows these callers to send the nvim_buf_lines_event
|
||||
// events after they're done modifying b_changedtick.
|
||||
)
|
||||
{
|
||||
changed_lines_buf(curbuf, lnum, lnume, xtra);
|
||||
|
||||
@@ -1234,7 +1234,7 @@ static void refresh_screen(Terminal *term, buf_T *buf)
|
||||
|
||||
int change_start = row_to_linenr(term, term->invalid_start);
|
||||
int change_end = change_start + changed;
|
||||
// Note: don't send nvim_buf_update event for a :terminal buffer
|
||||
// Note: don't send nvim_buf_lines_event event for a :terminal buffer
|
||||
changed_lines(change_start, 0, change_end, added, false);
|
||||
term->invalid_start = INT_MAX;
|
||||
term->invalid_end = -1;
|
||||
|
||||
@@ -1698,8 +1698,8 @@ bool u_undo_and_forget(int count)
|
||||
count = 1;
|
||||
}
|
||||
undo_undoes = true;
|
||||
// don't send a nvim_buf_update for this undo is part of 'inccommand' playing
|
||||
// with buffer contents
|
||||
// don't send a nvim_buf_lines_event for this undo is part of 'inccommand'
|
||||
// playing with buffer contents
|
||||
u_doit(count, true, false);
|
||||
|
||||
if (curbuf->b_u_curhead == NULL) {
|
||||
@@ -2284,7 +2284,7 @@ static void u_undoredo(int undo, bool do_buf_event)
|
||||
}
|
||||
|
||||
// because the calls to changed()/unchanged() above will bump b_changedtick
|
||||
// again, we need to send a nvim_buf_update with just the new value of
|
||||
// again, we need to send a nvim_buf_lines_event with just the new value of
|
||||
// b:changedtick
|
||||
if (do_buf_event && kv_size(curbuf->update_channels)) {
|
||||
buf_updates_changedtick(curbuf);
|
||||
|
||||
Reference in New Issue
Block a user