mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
mark: Do not do unnecessary initialization
This commit is contained in:
@@ -553,14 +553,6 @@ int check_mark(pos_T *pos)
|
||||
*/
|
||||
void clrallmarks(buf_T *buf)
|
||||
{
|
||||
static bool initialized = false;
|
||||
|
||||
if (!initialized) {
|
||||
// first call ever: initialize
|
||||
memset(&(namedfm[0]), 0, sizeof(namedfm));
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
memset(&(buf->b_namedm[0]), 0, sizeof(buf->b_namedm));
|
||||
buf->b_op_start.lnum = 0; /* start/end op mark cleared */
|
||||
buf->b_op_end.lnum = 0;
|
||||
|
Reference in New Issue
Block a user