aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-07-28 15:26:17 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-07-28 21:26:17 +0200
commit3b82c075b3adbe63fb2380bad875752fc950d352 (patch)
tree9d7920231f087ef6a5fb3fa11083eec785fad2a1 /src/nvim/eval.c
parent6953e151bbcbc1405762d94790957a0446300c9f (diff)
downloadrneovim-3b82c075b3adbe63fb2380bad875752fc950d352.tar.gz
rneovim-3b82c075b3adbe63fb2380bad875752fc950d352.tar.bz2
rneovim-3b82c075b3adbe63fb2380bad875752fc950d352.zip
vim-patch:8.0.1753: fix various warnings #10639
vim-patch:8.0.1753: various warnings from a static analyser Problem: Various warnings from a static analyser Solution: Remove unneeded conditions. https://github.com/vim/vim/commit/1c17ffa4611f4efe68c61f7cdd9ed692a866ba75
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index cd447d3e0f..6931c5e4fb 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -15175,15 +15175,15 @@ static void set_buffer_lines(buf_T *buf, linenr_T lnum, typval_T *lines,
}
rettv->vval.v_number = 1; // FAIL
- if (line == NULL || lnum < 1 || lnum > curbuf->b_ml.ml_line_count + 1) {
+ if (line == NULL || lnum > curbuf->b_ml.ml_line_count + 1) {
break;
}
- /* When coming here from Insert mode, sync undo, so that this can be
- * undone separately from what was previously inserted. */
+ // When coming here from Insert mode, sync undo, so that this can be
+ // undone separately from what was previously inserted.
if (u_sync_once == 2) {
- u_sync_once = 1; /* notify that u_sync() was called */
- u_sync(TRUE);
+ u_sync_once = 1; // notify that u_sync() was called
+ u_sync(true);
}
if (lnum <= curbuf->b_ml.ml_line_count) {