Mercurial > vim
diff src/fold.c @ 26915:3631d2deb36c v8.2.3986
patch 8.2.3986: error messages are spread out
Commit: https://github.com/vim/vim/commit/b09feaa86ecc53b9b953710082496951776dc5c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 20:20:45 2022 +0000
patch 8.2.3986: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jan 2022 21:30:04 +0100 |
parents | d4e61d61afd9 |
children | c9474ae175f4 |
line wrap: on
line diff
--- a/src/fold.c +++ b/src/fold.c @@ -65,8 +65,6 @@ static void foldDelMarker(linenr_T lnum, static void foldUpdateIEMS(win_T *wp, linenr_T top, linenr_T bot); static void parseMarker(win_T *wp); -static char *e_nofold = N_("E490: No fold found"); - /* * While updating the folds lines between invalid_top and invalid_bot have an * undefined fold level. Only used for the window currently being updated. @@ -412,7 +410,7 @@ opFoldRange( (void)hasFolding(lnum, NULL, &lnum_next); } if (done == DONE_NOTHING) - emsg(_(e_nofold)); + emsg(_(e_no_fold_found)); // Force a redraw to remove the Visual highlighting. if (had_visual) redraw_curbuf_later(INVERTED); @@ -785,7 +783,7 @@ deleteFold( } if (!did_one) { - emsg(_(e_nofold)); + emsg(_(e_no_fold_found)); // Force a redraw to remove the Visual highlighting. if (had_visual) redraw_curbuf_later(INVERTED); @@ -1235,7 +1233,7 @@ setFoldRepeat(linenr_T lnum, long count, { // Only give an error message when no fold could be opened. if (n == 0 && !(done & DONE_FOLD)) - emsg(_(e_nofold)); + emsg(_(e_no_fold_found)); break; } } @@ -1387,7 +1385,7 @@ setManualFoldWin( done |= DONE_FOLD; } else if (donep == NULL && wp == curwin) - emsg(_(e_nofold)); + emsg(_(e_no_fold_found)); if (donep != NULL) *donep |= done;