aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-07 02:29:30 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-07 17:27:59 -0500
commitf1fdeaf667033751378f6e1e29a6039e15de503e (patch)
tree481a0e1491a2e82bcdbd40160d4303c453381402 /src/nvim/ex_getln.c
parenta7d9df996dc1c353574845563216dc0372dd8b77 (diff)
downloadrneovim-f1fdeaf667033751378f6e1e29a6039e15de503e.tar.gz
rneovim-f1fdeaf667033751378f6e1e29a6039e15de503e.tar.bz2
rneovim-f1fdeaf667033751378f6e1e29a6039e15de503e.zip
option: use char* for set_string_option_direct()
"name" param was cast to (const char *). All calls to set_string_option_direct() cast 1st arg from (char *) to (char_u *). Remove these useless casts.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index cf6bb6d492..7776191869 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -886,7 +886,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
need_wait_return = false;
}
- set_string_option_direct((char_u *)"icm", -1, s->save_p_icm, OPT_FREE,
+ set_string_option_direct("icm", -1, s->save_p_icm, OPT_FREE,
SID_NONE);
State = s->save_State;
setmouse();