aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-22 18:00:55 +0800
committerGitHub <noreply@github.com>2023-07-22 18:00:55 +0800
commitd2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26 (patch)
tree5ccd5999192f20426f31a196e4a9b239211c1e94 /src/nvim/ex_getln.c
parent4b57ff77febbe6073bc4c5c3a45b0ad0d5d40e6c (diff)
downloadrneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.tar.gz
rneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.tar.bz2
rneovim-d2efcbf2dca6c2899ba0a1be7fc10dbf3f112d26.zip
refactor: remove some (const char **) casts (#24423)
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 927877dc74..fe72860628 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -3530,7 +3530,7 @@ void unputcmdline(void)
// part will be redrawn, otherwise it will not. If this function is called
// twice in a row, then 'redraw' should be false and redrawcmd() should be
// called afterwards.
-void put_on_cmdline(char *str, int len, int redraw)
+void put_on_cmdline(const char *str, int len, int redraw)
{
int i;
int m;
@@ -3740,7 +3740,7 @@ static bool cmdline_paste(int regname, bool literally, bool remcr)
// When "literally" is true, insert literally.
// When "literally" is false, insert as typed, but don't leave the command
// line.
-void cmdline_paste_str(char *s, int literally)
+void cmdline_paste_str(const char *s, int literally)
{
if (literally) {
put_on_cmdline(s, -1, true);
@@ -3750,7 +3750,7 @@ void cmdline_paste_str(char *s, int literally)
if (cv == Ctrl_V && s[1]) {
s++;
}
- int c = mb_cptr2char_adv((const char **)&s);
+ int c = mb_cptr2char_adv(&s);
if (cv == Ctrl_V || c == ESC || c == Ctrl_C
|| c == CAR || c == NL || c == Ctrl_L
|| (c == Ctrl_BSL && *s == Ctrl_N)) {