mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
fix(statusline): make nvim_eval_statusline() work with %S (#21553)
This commit is contained in:
@@ -1505,7 +1505,7 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, char *opt_n
|
||||
break;
|
||||
|
||||
case STL_SHOWCMD:
|
||||
if (p_sc && strcmp(opt_name, p_sloc) == 0) {
|
||||
if (p_sc && (opt_name == NULL || strcmp(opt_name, p_sloc) == 0)) {
|
||||
str = showcmd_buf;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user