mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1501: Vim9: concatenating to constant reverses order
Problem: Vim9: concatenating to constant reverses order. Solution: Generate constant before option, register and environment variable. (closes #6757)
This commit is contained in:
@@ -3402,19 +3402,25 @@ compile_expr7(
|
||||
/*
|
||||
* Option value: &name
|
||||
*/
|
||||
case '&': ret = compile_get_option(arg, cctx);
|
||||
case '&': if (generate_ppconst(cctx, ppconst) == FAIL)
|
||||
return FAIL;
|
||||
ret = compile_get_option(arg, cctx);
|
||||
break;
|
||||
|
||||
/*
|
||||
* Environment variable: $VAR.
|
||||
*/
|
||||
case '$': ret = compile_get_env(arg, cctx);
|
||||
case '$': if (generate_ppconst(cctx, ppconst) == FAIL)
|
||||
return FAIL;
|
||||
ret = compile_get_env(arg, cctx);
|
||||
break;
|
||||
|
||||
/*
|
||||
* Register contents: @r.
|
||||
*/
|
||||
case '@': ret = compile_get_register(arg, cctx);
|
||||
case '@': if (generate_ppconst(cctx, ppconst) == FAIL)
|
||||
return FAIL;
|
||||
ret = compile_get_register(arg, cctx);
|
||||
break;
|
||||
/*
|
||||
* nested expression: (expression).
|
||||
|
Reference in New Issue
Block a user