Mercurial > vim
comparison src/message.c @ 22163:b6d36f0b4f03 v8.2.1631
patch 8.2.1631: test_fails() does not check the context of the line number
Commit: https://github.com/vim/vim/commit/9bd5d879c2ecfbdbb168b090e12f4b89724a302e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 6 21:47:48 2020 +0200
patch 8.2.1631: test_fails() does not check the context of the line number
Problem: test_fails() does not check the context of the line number.
Solution: Use another argument to specify the context of the line number.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Sep 2020 22:00:03 +0200 |
parents | 3e5d0832a2e7 |
children | a607f02fd17a |
comparison
equal
deleted
inserted
replaced
22162:b910fd9e1190 | 22163:b6d36f0b4f03 |
---|---|
656 | 656 |
657 if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) | 657 if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) |
658 { | 658 { |
659 emsg_assert_fails_msg = vim_strsave(s); | 659 emsg_assert_fails_msg = vim_strsave(s); |
660 emsg_assert_fails_lnum = SOURCING_LNUM; | 660 emsg_assert_fails_lnum = SOURCING_LNUM; |
661 vim_free(emsg_assert_fails_context); | |
662 emsg_assert_fails_context = vim_strsave( | |
663 SOURCING_NAME == NULL ? (char_u *)"" : SOURCING_NAME); | |
661 } | 664 } |
662 | 665 |
663 // set "v:errmsg", also when using ":silent! cmd" | 666 // set "v:errmsg", also when using ":silent! cmd" |
664 set_vim_var_string(VV_ERRMSG, s, -1); | 667 set_vim_var_string(VV_ERRMSG, s, -1); |
665 #endif | 668 #endif |