aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-04-24 20:01:31 +0200
committerMatthieu Coudron <mattator@gmail.com>2020-04-24 20:33:11 +0200
commit6da348f22020b08c868282a1c72473ae4659e4c7 (patch)
tree167472c03a4e14562c4ecb2ab94cc8d542168130 /src/nvim/memline.c
parent7d2879694e67d4392a46377aafdf6445c44f18bc (diff)
downloadrneovim-6da348f22020b08c868282a1c72473ae4659e4c7.tar.gz
rneovim-6da348f22020b08c868282a1c72473ae4659e4c7.tar.bz2
rneovim-6da348f22020b08c868282a1c72473ae4659e4c7.zip
lint: fix linting issues
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r--src/nvim/memline.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 8c66154b6f..6e074b3249 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -2432,9 +2432,10 @@ int ml_replace_buf(buf_T *buf, linenr_T lnum, char_u *line, bool copy)
if (line == NULL) /* just checking... */
return FAIL;
- /* When starting up, we might still need to create the memfile */
- if (buf->b_ml.ml_mfp == NULL && open_buffer(FALSE, NULL, 0) == FAIL)
+ // When starting up, we might still need to create the memfile
+ if (buf->b_ml.ml_mfp == NULL && open_buffer(false, NULL, 0) == FAIL) {
return FAIL;
+ }
bool readlen = true;
@@ -4000,7 +4001,7 @@ long ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp, bool no_ff)
int ffdos = !no_ff && (get_fileformat(buf) == EOL_DOS);
int extra = 0;
- /* take care of cached line first */
+ // take care of cached line first
ml_flush_line(buf);
if (buf->b_ml.ml_usedchunks == -1