move changed_int/changed_internal

This commit is contained in:
Daniel Hahler
2019-06-09 15:46:09 +02:00
parent a822b3e547
commit 0e5314f56e
2 changed files with 7 additions and 22 deletions

View File

@@ -93,7 +93,7 @@ void changed(void)
need_wait_return = save_need_wait_return; need_wait_return = save_need_wait_return;
} }
} }
changed_int(); changed_internal();
} }
buf_inc_changedtick(curbuf); buf_inc_changedtick(curbuf);
@@ -105,16 +105,13 @@ void changed(void)
* Internal part of changed(), no user interaction. * Internal part of changed(), no user interaction.
* Also used for recovery. * Also used for recovery.
*/ */
void void changed_internal(void)
changed_internal(void)
{ {
curbuf->b_changed = TRUE; curbuf->b_changed = true;
ml_setflags(curbuf); ml_setflags(curbuf);
check_status(curbuf); check_status(curbuf);
redraw_tabline = TRUE; redraw_tabline = true;
#ifdef FEAT_TITLE need_maketitle = true; // set window title later
need_maketitle = TRUE; // set window title later
#endif
} }
/* /*

View File

@@ -1785,18 +1785,6 @@ int gchar_pos(pos_T *pos)
return utf_ptr2char(ml_get_pos(pos)); return utf_ptr2char(ml_get_pos(pos));
} }
/*
* Internal part of changed(), no user interaction.
*/
void changed_int(void)
{
curbuf->b_changed = true;
ml_setflags(curbuf);
check_status(curbuf);
redraw_tabline = TRUE;
need_maketitle = TRUE; /* set window title later */
}
/* /*
* Changed bytes within a single line for the current buffer. * Changed bytes within a single line for the current buffer.