diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
commit | e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch) | |
tree | eb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/window.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) | |
download | vim-git-e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3.tar.gz |
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c index cc9c217b4..8e5d3de26 100644 --- a/src/window.c +++ b/src/window.c @@ -863,7 +863,7 @@ win_split_ins( { if (VISIBLE_HEIGHT(oldwin) <= p_wmh && new_wp == NULL) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); return FAIL; } need_status = STATUS_HEIGHT; @@ -921,7 +921,7 @@ win_split_ins( } if (available < needed && new_wp == NULL) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); return FAIL; } if (new_size == 0) @@ -1004,7 +1004,7 @@ win_split_ins( } if (available < needed && new_wp == NULL) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); return FAIL; } oldwin_height = oldwin->w_height; @@ -5867,7 +5867,7 @@ win_setminheight(void) --p_wmh; if (first) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); first = FALSE; } } @@ -5893,7 +5893,7 @@ win_setminwidth(void) --p_wmw; if (first) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); first = FALSE; } } @@ -6385,7 +6385,7 @@ command_height(void) { if (frp == NULL) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); p_ch = old_p_ch; curtab->tp_ch_used = p_ch; cmdline_row = Rows - p_ch; @@ -6476,7 +6476,7 @@ last_status_rec(frame_T *fr, int statusline) { if (fp == topframe) { - emsg(_(e_noroom)); + emsg(_(e_not_enough_room)); return; } // In a column of frames: go to frame above. If already at |