Mercurial > vim
comparison src/undo.c @ 20118:252d2bb90394 v8.2.0614
patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'
Commit: https://github.com/vim/vim/commit/ff06f283e3e4b3ec43012dd3b83f8454c98f6639
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 21 22:01:14 2020 +0200
patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'
Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan
Lakshmanan)
Solution: Lock the text while evaluating 'completefunc'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Apr 2020 22:15:04 +0200 |
parents | aadd1cae2ff5 |
children | 06a1dd50463e |
comparison
equal
deleted
inserted
replaced
20117:60a0e7ed241d | 20118:252d2bb90394 |
---|---|
331 | 331 |
332 // Don't allow changes in the buffer while editing the cmdline. The | 332 // Don't allow changes in the buffer while editing the cmdline. The |
333 // caller of getcmdline() may get confused. | 333 // caller of getcmdline() may get confused. |
334 if (textlock != 0) | 334 if (textlock != 0) |
335 { | 335 { |
336 emsg(_(e_secure)); | 336 emsg(_(e_textlock)); |
337 return FALSE; | 337 return FALSE; |
338 } | 338 } |
339 | 339 |
340 return TRUE; | 340 return TRUE; |
341 } | 341 } |