refactor(misc1): move insertmode related function to edit.c

This commit is contained in:
Björn Linse
2021-12-10 17:35:06 +01:00
parent c88555418a
commit 29517d95b7
2 changed files with 10 additions and 10 deletions

View File

@@ -437,13 +437,3 @@ done:
xfree(tempname);
return buffer;
}
/*
* Return TRUE when need to go to Insert mode because of 'insertmode'.
* Don't do this when still processing a command or a mapping.
* Don't do this when inside a ":normal" command.
*/
int goto_im(void)
{
return p_im && stuff_empty() && typebuf_typed();
}