diff src/quickfix.c @ 18827:f98368dd6615 v8.1.2401

patch 8.1.2401: :cexpr does not handle | in expression Commit: https://github.com/vim/vim/commit/88a3e2b2ac33e3bb4b7cf9132eb75db051e8f4ed Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 6 21:11:39 2019 +0100 patch 8.1.2401: :cexpr does not handle | in expression Problem: :cexpr does not handle | in expression. Solution: Remove EX_TRLBAR and set nextcmd pointer.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Dec 2019 21:15:04 +0100
parents d34ec6fe207d
children 050f5eaa9e50
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -7548,7 +7548,7 @@ ex_cexpr(exarg_T *eap)
 
     // Evaluate the expression.  When the result is a string or a list we can
     // use it to fill the errorlist.
-    tv = eval_expr(eap->arg, NULL);
+    tv = eval_expr(eap->arg, &eap->nextcmd);
     if (tv != NULL)
     {
 	if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL)