Mercurial > vim
comparison src/vim9execute.c @ 20289:208b38bddc36 v8.2.0700
patch 8.2.0700: Vim9: converting error message to exception not tested
Commit: https://github.com/vim/vim/commit/40ee466c361b9698c2a452a36ff4d6c6e5382ed0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 5 22:08:26 2020 +0200
patch 8.2.0700: Vim9: converting error message to exception not tested
Problem: Vim9: converting error message to exception not tested.
Solution: Test exception from error. Do not continue after :echoerr.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 May 2020 22:15:04 +0200 |
parents | ce1b73835822 |
children | bc2c9ea94ec1 |
comparison
equal
deleted
inserted
replaced
20288:40f2361f79e1 | 20289:208b38bddc36 |
---|---|
896 msg_attr(ga.ga_data, echo_attr); | 896 msg_attr(ga.ga_data, echo_attr); |
897 out_flush(); | 897 out_flush(); |
898 } | 898 } |
899 else | 899 else |
900 { | 900 { |
901 int save_did_emsg = did_emsg; | |
902 | |
903 SOURCING_LNUM = iptr->isn_lnum; | 901 SOURCING_LNUM = iptr->isn_lnum; |
904 emsg(ga.ga_data); | 902 emsg(ga.ga_data); |
905 if (!force_abort) | |
906 // We don't want to abort following | |
907 // commands, restore did_emsg. | |
908 did_emsg = save_did_emsg; | |
909 } | 903 } |
910 } | 904 } |
911 } | 905 } |
912 ga_clear(&ga); | 906 ga_clear(&ga); |
913 } | 907 } |