aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-11 11:20:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-11 13:31:17 +0100
commit8e58d37f2e15ac8540377148e55ed08a039aadb6 (patch)
tree799dd1f30d375ac8cdeae196fceec9d2ad0f134a /src/nvim/change.c
parentc4ad15ae324f6460c683a64c44d65e693e1f39bb (diff)
downloadrneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.gz
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.bz2
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index a2657b86aa..39229e1cf0 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -623,7 +623,7 @@ bool file_ff_differs(buf_T *buf, bool ignore_empty)
if (ignore_empty
&& (buf->b_flags & BF_NEW)
&& buf->b_ml.ml_line_count == 1
- && *ml_get_buf(buf, (linenr_T)1) == NUL) {
+ && *ml_get_buf(buf, 1) == NUL) {
return false;
}
if (buf->b_start_ffc != *buf->b_p_ff) {
@@ -1726,7 +1726,7 @@ int open_line(int dir, int flags, int second_line_indent, bool *did_do_comment)
curwin->w_cursor.lnum--;
}
if ((State & VREPLACE_FLAG) == 0 || old_cursor.lnum >= orig_line_count) {
- if (ml_append(curwin->w_cursor.lnum, p_extra, (colnr_T)0, false) == FAIL) {
+ if (ml_append(curwin->w_cursor.lnum, p_extra, 0, false) == FAIL) {
goto theend;
}
// Postpone calling changed_lines(), because it would mess up folding