Mercurial > vim
comparison src/userfunc.c @ 19419:c6c9d91d8290 v8.2.0267
patch 8.2.0267: no check for a following cmd when calling a function fails
Commit: https://github.com/vim/vim/commit/e51bb17dd0d51384375830ee2a1df30c08121443
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 16 19:42:23 2020 +0100
patch 8.2.0267: no check for a following cmd when calling a function fails
Problem: No check for a following command when calling a function fails.
Solution: Also check for a following command when inside a try block.
(closes #5642)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Feb 2020 19:45:04 +0100 |
parents | 9c8b803fe598 |
children | 208644ebdff8 |
comparison
equal
deleted
inserted
replaced
19418:f3d0c7552be6 | 19419:c6c9d91d8290 |
---|---|
3552 break; | 3552 break; |
3553 } | 3553 } |
3554 if (eap->skip) | 3554 if (eap->skip) |
3555 --emsg_skip; | 3555 --emsg_skip; |
3556 | 3556 |
3557 if (!failed) | 3557 // When inside :try we need to check for following "| catch". |
3558 if (!failed || eap->cstack->cs_trylevel > 0) | |
3558 { | 3559 { |
3559 // Check for trailing illegal characters and a following command. | 3560 // Check for trailing illegal characters and a following command. |
3560 if (!ends_excmd(*arg)) | 3561 if (!ends_excmd(*arg)) |
3561 { | 3562 { |
3562 emsg_severe = TRUE; | 3563 emsg_severe = TRUE; |