Mercurial > vim
comparison src/window.c @ 26883:7f150a4936f2 v8.2.3970
patch 8.2.3970: error messages are spread out
Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 15:58:22 2022 +0000
patch 8.2.3970: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 17:00:04 +0100 |
parents | bce848ec8b1b |
children | 79c76ca2c53c |
comparison
equal
deleted
inserted
replaced
26882:196f4d7e2a38 | 26883:7f150a4936f2 |
---|---|
2494 if (win->w_closing || (win->w_buffer != NULL | 2494 if (win->w_closing || (win->w_buffer != NULL |
2495 && win->w_buffer->b_locked > 0)) | 2495 && win->w_buffer->b_locked > 0)) |
2496 return FAIL; // window is already being closed | 2496 return FAIL; // window is already being closed |
2497 if (win_unlisted(win)) | 2497 if (win_unlisted(win)) |
2498 { | 2498 { |
2499 emsg(_(e_autocmd_close)); | 2499 emsg(_(e_cannot_close_autocmd_or_popup_window)); |
2500 return FAIL; | 2500 return FAIL; |
2501 } | 2501 } |
2502 if ((firstwin == aucmd_win || lastwin == aucmd_win) && one_window()) | 2502 if ((firstwin == aucmd_win || lastwin == aucmd_win) && one_window()) |
2503 { | 2503 { |
2504 emsg(_("E814: Cannot close window, only autocmd window would remain")); | 2504 emsg(_("E814: Cannot close window, only autocmd window would remain")); |