refactor: set_chars_option()

Rename "set" to "apply" and tidy up variable scopes.
This commit is contained in:
zeertzjq
2022-08-26 09:04:51 +08:00
parent 752d397cae
commit db28c2ca2b
2 changed files with 42 additions and 42 deletions

View File

@@ -1655,7 +1655,7 @@ int hex2nr(int c)
/// Convert two hex characters to a byte.
/// Return -1 if one of the characters is not hex.
int hexhex2nr(char_u *p)
int hexhex2nr(const char_u *p)
FUNC_ATTR_PURE
{
if (!ascii_isxdigit(p[0]) || !ascii_isxdigit(p[1])) {