Mercurial > vim
comparison src/misc2.c @ 18886:050f5eaa9e50 v8.2.0004
patch 8.2.0004: get E685 and E931 if buffer reload is interrupted
Commit: https://github.com/vim/vim/commit/a6e8f888e7fc31b8ab7233509254fb2e2fe4089f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 14 16:18:15 2019 +0100
patch 8.2.0004: get E685 and E931 if buffer reload is interrupted
Problem: Get E685 and E931 if buffer reload is interrupted.
Solution: Do not abort deleting a dummy buffer. (closes https://github.com/vim/vim/issues/5361)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Dec 2019 16:30:04 +0100 |
parents | 49b78d6465e5 |
children | 80b40bd5ec1a |
comparison
equal
deleted
inserted
replaced
18885:f4852c310de1 | 18886:050f5eaa9e50 |
---|---|
1183 { | 1183 { |
1184 bufref_T bufref; | 1184 bufref_T bufref; |
1185 | 1185 |
1186 set_bufref(&bufref, buf); | 1186 set_bufref(&bufref, buf); |
1187 nextbuf = buf->b_next; | 1187 nextbuf = buf->b_next; |
1188 close_buffer(NULL, buf, DOBUF_WIPE, FALSE); | 1188 close_buffer(NULL, buf, DOBUF_WIPE, FALSE, FALSE); |
1189 if (bufref_valid(&bufref)) | 1189 if (bufref_valid(&bufref)) |
1190 buf = nextbuf; /* didn't work, try next one */ | 1190 buf = nextbuf; /* didn't work, try next one */ |
1191 else | 1191 else |
1192 buf = firstbuf; | 1192 buf = firstbuf; |
1193 } | 1193 } |