diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2018-05-18 10:09:11 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2018-05-23 22:07:27 +0200 |
commit | 65e7f6f0b97b02e323488e06bf0f5df93bbcbf93 (patch) | |
tree | c4dd56622987e2605f14667ba6391124636d7266 /src | |
parent | 0bee3925ab5186211f10c823d4f149d4d16eb7a5 (diff) | |
download | rneovim-65e7f6f0b97b02e323488e06bf0f5df93bbcbf93.tar.gz rneovim-65e7f6f0b97b02e323488e06bf0f5df93bbcbf93.tar.bz2 rneovim-65e7f6f0b97b02e323488e06bf0f5df93bbcbf93.zip |
Rename some more, fixe borked renaming
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer_updates.c | 2 | ||||
-rw-r--r-- | src/nvim/ex_cmds.c | 2 | ||||
-rw-r--r-- | src/nvim/fold.c | 4 | ||||
-rw-r--r-- | src/nvim/misc1.c | 6 | ||||
-rw-r--r-- | src/nvim/terminal.c | 2 | ||||
-rw-r--r-- | src/nvim/undo.c | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/nvim/buffer_updates.c b/src/nvim/buffer_updates.c index 2852561ce0..4774b969c4 100644 --- a/src/nvim/buffer_updates.c +++ b/src/nvim/buffer_updates.c @@ -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) diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 0638c10dc0..1d98f171b4 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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); } diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 32ba665f64..b8ace511e8 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -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); } diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index de68031135..6c5c47b91f 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -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); diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 9ab537d8b9..c29f0b3927 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -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; diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 985c6873a4..44bcefb332 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -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); |