Mercurial > vim
comparison src/eval.c @ 25495:7144d2ffc86b v8.2.3284
patch 8.2.3284: no error for insert() or remove() changing a locked blob
Commit: https://github.com/vim/vim/commit/80d7395dcfe96158428da6bb3d28a6eee1244e28
Author: Sean Dewar <seandewar@users.noreply.github.com>
Date: Wed Aug 4 19:25:54 2021 +0200
patch 8.2.3284: no error for insert() or remove() changing a locked blob
Problem: No error for insert() or remove() changing a locked blob.
Solution: Check a blob is not locked before changing it. (Sean Dewar,
closes #8696)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Aug 2021 19:30:04 +0200 |
parents | e7c02cbe701f |
children | 2063b858cad9 |
comparison
equal
deleted
inserted
replaced
25494:bdb60211e4d3 | 25495:7144d2ffc86b |
---|---|
1747 if (fi->fi_string == NULL) | 1747 if (fi->fi_string == NULL) |
1748 fi->fi_string = vim_strsave((char_u *)""); | 1748 fi->fi_string = vim_strsave((char_u *)""); |
1749 } | 1749 } |
1750 else | 1750 else |
1751 { | 1751 { |
1752 emsg(_(e_listreq)); | 1752 emsg(_(e_string_list_or_blob_required)); |
1753 clear_tv(&tv); | 1753 clear_tv(&tv); |
1754 } | 1754 } |
1755 } | 1755 } |
1756 } | 1756 } |
1757 if (skip) | 1757 if (skip) |