mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00

committed by
Justin M. Keyes

parent
6aefae8c4e
commit
22311457ab
@@ -8607,11 +8607,14 @@ eval_vars (
|
||||
break;
|
||||
}
|
||||
|
||||
resultlen = STRLEN(result); /* length of new string */
|
||||
if (src[*usedlen] == '<') { /* remove the file name extension */
|
||||
++*usedlen;
|
||||
if ((s = vim_strrchr(result, '.')) != NULL && s >= path_tail(result))
|
||||
// Length of new string.
|
||||
resultlen = STRLEN(result);
|
||||
// Remove the file name extension.
|
||||
if (src[*usedlen] == '<') {
|
||||
(*usedlen)++;
|
||||
if ((s = STRRCHR(result, '.')) != NULL && s >= path_tail(result)) {
|
||||
resultlen = (size_t)(s - result);
|
||||
}
|
||||
} else if (!skip_mod) {
|
||||
valid |= modify_fname(src, usedlen, &result, &resultbuf, &resultlen);
|
||||
if (result == NULL) {
|
||||
|
Reference in New Issue
Block a user