0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.2198: crash when using :center in autocommand

Problem:    Crash when using :center in autocommand.
Solution:   Bail out early for an empty line. (Dominique pelle, closes #5095)
This commit is contained in:
Bram Moolenaar
2019-10-21 23:08:59 +02:00
parent 34ba06b6e6
commit 396b7c78c0
3 changed files with 31 additions and 4 deletions

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2198,
/**/
2197,
/**/