|
|
95b286 |
diff --git a/src/ex_getln.c b/src/ex_getln.c
|
|
|
95b286 |
index 9fdfac5..6451378 100644
|
|
|
95b286 |
--- a/src/ex_getln.c
|
|
|
95b286 |
+++ b/src/ex_getln.c
|
|
|
95b286 |
@@ -797,6 +797,7 @@ getcmdline(
|
|
|
95b286 |
redrawcmd();
|
|
|
95b286 |
goto cmdline_changed;
|
|
|
95b286 |
}
|
|
|
95b286 |
+ vim_free(p);
|
|
|
95b286 |
}
|
|
|
95b286 |
}
|
|
|
95b286 |
beep_flush();
|
|
|
95b286 |
diff --git a/src/memline.c b/src/memline.c
|
|
|
95b286 |
index 4be1036..366de4c 100644
|
|
|
95b286 |
--- a/src/memline.c
|
|
|
95b286 |
+++ b/src/memline.c
|
|
|
95b286 |
@@ -344,7 +344,7 @@ ml_open(buf_T *buf)
|
|
|
95b286 |
b0p->b0_magic_int = (int)B0_MAGIC_INT;
|
|
|
95b286 |
b0p->b0_magic_short = (short)B0_MAGIC_SHORT;
|
|
|
95b286 |
b0p->b0_magic_char = B0_MAGIC_CHAR;
|
|
|
95b286 |
- STRNCPY(b0p->b0_version, "VIM ", 4);
|
|
|
95b286 |
+ mch_memmove(b0p->b0_version, "VIM ", 4);
|
|
|
95b286 |
STRNCPY(b0p->b0_version + 4, Version, 6);
|
|
|
95b286 |
long_to_char((long)mfp->mf_page_size, b0p->b0_page_size);
|
|
|
95b286 |
|
|
|
95b286 |
diff --git a/src/move.c b/src/move.c
|
|
|
95b286 |
index a560030..2ea3975 100644
|
|
|
95b286 |
--- a/src/move.c
|
|
|
95b286 |
+++ b/src/move.c
|
|
|
95b286 |
@@ -1939,7 +1939,7 @@ scroll_cursor_bot(int min_scroll, int set_topbot)
|
|
|
95b286 |
scrolled += loff.height;
|
|
|
95b286 |
if (loff.lnum == curwin->w_botline
|
|
|
95b286 |
#ifdef FEAT_DIFF
|
|
|
95b286 |
- && boff.fill == 0
|
|
|
95b286 |
+ && loff.fill == 0
|
|
|
95b286 |
#endif
|
|
|
95b286 |
)
|
|
|
95b286 |
scrolled -= curwin->w_empty_rows;
|
|
|
95b286 |
diff --git a/src/term.c b/src/term.c
|
|
|
95b286 |
index 9ac824f..89b663a 100644
|
|
|
95b286 |
--- a/src/term.c
|
|
|
95b286 |
+++ b/src/term.c
|
|
|
95b286 |
@@ -1460,7 +1460,7 @@ parse_builtin_tcap(char_u *term)
|
|
|
95b286 |
if (term_7to8bit(t))
|
|
|
95b286 |
{
|
|
|
95b286 |
*t = term_7to8bit(t);
|
|
|
95b286 |
- STRCPY(t + 1, t + 2);
|
|
|
95b286 |
+ STRMOVE(t + 1, t + 2);
|
|
|
95b286 |
}
|
|
|
95b286 |
term_strings[p->bt_entry] = s;
|
|
|
95b286 |
set_term_option_alloced(&term_strings[p->bt_entry]);
|