aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-04 20:29:51 +0800
committerGitHub <noreply@github.com>2023-12-04 20:29:51 +0800
commit66f1563c7a48d76f99c89e32de030e57af2abfb4 (patch)
treee3c0966099e6cb2f3a631bca17259cc1d394d3fa /src/nvim/terminal.h
parentcf612c64b0fc87c399bc5c72735335c5e73d6de1 (diff)
downloadrneovim-66f1563c7a48d76f99c89e32de030e57af2abfb4.tar.gz
rneovim-66f1563c7a48d76f99c89e32de030e57af2abfb4.tar.bz2
rneovim-66f1563c7a48d76f99c89e32de030e57af2abfb4.zip
refactor(terminal): only remove const qualifier when necessary (#26386)
Diffstat (limited to 'src/nvim/terminal.h')
-rw-r--r--src/nvim/terminal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.h b/src/nvim/terminal.h
index 66cad7ee7a..db62bd2a5b 100644
--- a/src/nvim/terminal.h
+++ b/src/nvim/terminal.h
@@ -4,7 +4,7 @@
#include <stdint.h>
typedef struct terminal Terminal;
-typedef void (*terminal_write_cb)(char *buffer, size_t size, void *data);
+typedef void (*terminal_write_cb)(const char *buffer, size_t size, void *data);
typedef void (*terminal_resize_cb)(uint16_t width, uint16_t height, void *data);
typedef void (*terminal_close_cb)(void *data);