aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-26 09:04:51 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-26 10:14:59 +0800
commitdb28c2ca2b6561bc65dd064ca5f45b0a9f3b4790 (patch)
treef88f839b2600b7a37bcf73f055aa3d5d4cf4258c /src/nvim/charset.c
parent752d397cae994e496cbfaad386f39d24d7fa8203 (diff)
downloadrneovim-db28c2ca2b6561bc65dd064ca5f45b0a9f3b4790.tar.gz
rneovim-db28c2ca2b6561bc65dd064ca5f45b0a9f3b4790.tar.bz2
rneovim-db28c2ca2b6561bc65dd064ca5f45b0a9f3b4790.zip
refactor: set_chars_option()
Rename "set" to "apply" and tidy up variable scopes.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index ff58810ff0..d48cadf356 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -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])) {