aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorGeorge Zhao <zhaozg@gmail.com>2018-01-17 19:40:31 +0800
committerGeorge Zhao <zhaozg@gmail.com>2018-01-18 21:30:04 +0800
commit12acf0f7a76160e33bb84876121d3a63dde3c252 (patch)
tree17534b03eddec52f6117dd0d707495c78566c2ad /src/nvim/tui
parentbac86a194117008656d02951de6d303ab8687eec (diff)
downloadrneovim-12acf0f7a76160e33bb84876121d3a63dde3c252.tar.gz
rneovim-12acf0f7a76160e33bb84876121d3a63dde3c252.tar.bz2
rneovim-12acf0f7a76160e33bb84876121d3a63dde3c252.zip
Fix warning when assing size_t type value to uv_buf_t.len, convert type to ULONG on Windows.
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/tui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 2349bd2ae9..f3383eb006 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1744,14 +1744,14 @@ static void flush_buf(UI *ui)
// cursor is visible. Write a "cursor invisible" command before writing the
// buffer.
bufp->base = data->invis;
- bufp->len = data->invislen;
+ bufp->len = UV_BUF_LEN(data->invislen);
bufp++;
data->is_invisible = true;
}
if (data->bufpos > 0) {
bufp->base = data->buf;
- bufp->len = data->bufpos;
+ bufp->len = UV_BUF_LEN(data->bufpos);
bufp++;
}
@@ -1759,7 +1759,7 @@ static void flush_buf(UI *ui)
// not busy and the cursor is invisible. Write a "cursor normal" command
// after writing the buffer.
bufp->base = data->norm;
- bufp->len = data->normlen;
+ bufp->len = UV_BUF_LEN(data->normlen);
bufp++;
data->is_invisible = data->busy;
}