Merge pull request #18091 from dundargoc/refactor/pure-attribute

refactor: add pure attribute to pure functions
This commit is contained in:
bfredl
2022-04-18 21:40:14 +02:00
committed by GitHub
8 changed files with 21 additions and 0 deletions

View File

@@ -2604,6 +2604,7 @@ char_u *getexline(int c, void *cookie, int indent, bool do_concat)
}
bool cmdline_overstrike(void)
FUNC_ATTR_PURE
{
return ccline.overstrike;
}
@@ -2611,6 +2612,7 @@ bool cmdline_overstrike(void)
/// Return true if the cursor is at the end of the cmdline.
bool cmdline_at_end(void)
FUNC_ATTR_PURE
{
return (ccline.cmdpos >= ccline.cmdlen);
}