aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2018-04-24 20:38:00 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commite7451f8a91e0a9452fc3c3627ac60dc80288252c (patch)
treedf606b41f1cf56b8eeb05671ae8e9eb3f136601c /src/nvim/misc1.c
parentde5d1e863c71c8da87422bdb94dc91749d4a8b61 (diff)
downloadrneovim-e7451f8a91e0a9452fc3c3627ac60dc80288252c.tar.gz
rneovim-e7451f8a91e0a9452fc3c3627ac60dc80288252c.tar.bz2
rneovim-e7451f8a91e0a9452fc3c3627ac60dc80288252c.zip
Some renamings and doc changes
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 47ec3eff32..de68031135 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -1823,7 +1823,7 @@ void changed_bytes(linenr_T lnum, colnr_T col)
changed_common(lnum, col, lnum + 1, 0L);
// notify any channels that are watching
if (kv_size(curbuf->update_channels)) {
- buffer_updates_send_changes(curbuf, lnum, 1, 1, true);
+ buf_updates_send_changes(curbuf, lnum, 1, 1, true);
}
/* Diff highlighting in other diff windows may need to be updated too. */
@@ -1920,7 +1920,7 @@ changed_lines(
colnr_T col, // column in first line with change
linenr_T lnume, // line below last changed line
long xtra, // number of extra lines (negative when deleting)
- bool send_update // some callers like undo/redo call changed_lines()
+ 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.
@@ -1948,10 +1948,10 @@ changed_lines(
changed_common(lnum, col, lnume, xtra);
- if (send_update && kv_size(curbuf->update_channels)) {
+ if (do_buf_event && kv_size(curbuf->update_channels)) {
int64_t num_added = (int64_t)(lnume + xtra - lnum);
int64_t num_removed = lnume - lnum;
- buffer_updates_send_changes(curbuf, lnum, num_added, num_removed, true);
+ buf_updates_send_changes(curbuf, lnum, num_added, num_removed, true);
}
}