diff options
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 48663c5a20..b41d054ac3 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -96,7 +96,7 @@ typedef enum { WEE_TRIGGER_LEAVE_AUTOCMDS = 0x10, } wee_flags_T; -static char e_cannot_split_window_when_closing_buffer[] +static const char e_cannot_split_window_when_closing_buffer[] = N_("E1159: Cannot split a window when closing the buffer"); static char *m_onlyone = N_("Already only one window"); @@ -7422,7 +7422,7 @@ static int int_cmp(const void *a, const void *b) /// Handle setting 'colorcolumn' or 'textwidth' in window "wp". /// /// @return error message, NULL if it's OK. -char *check_colorcolumn(win_T *wp) +const char *check_colorcolumn(win_T *wp) { if (wp->w_buffer == NULL) { return NULL; // buffer was closed |