Mercurial > vim
comparison src/spellsuggest.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: 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 15:30:05 +0100 |
parents | fc859aea8cec |
children | c9474ae175f4 |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
479 curwin->w_p_spell = TRUE; | 479 curwin->w_p_spell = TRUE; |
480 } | 480 } |
481 | 481 |
482 if (*curwin->w_s->b_p_spl == NUL) | 482 if (*curwin->w_s->b_p_spl == NUL) |
483 { | 483 { |
484 emsg(_(e_no_spell)); | 484 emsg(_(e_spell_checking_is_not_possible)); |
485 return; | 485 return; |
486 } | 486 } |
487 | 487 |
488 if (VIsual_active) | 488 if (VIsual_active) |
489 { | 489 { |
933 | 933 |
934 // Open the file. | 934 // Open the file. |
935 fd = mch_fopen((char *)fname, "r"); | 935 fd = mch_fopen((char *)fname, "r"); |
936 if (fd == NULL) | 936 if (fd == NULL) |
937 { | 937 { |
938 semsg(_(e_notopen), fname); | 938 semsg(_(e_cant_open_file_str), fname); |
939 return; | 939 return; |
940 } | 940 } |
941 | 941 |
942 // Read it line by line. | 942 // Read it line by line. |
943 while (!vim_fgets(line, MAXWLEN * 2, fd) && !got_int) | 943 while (!vim_fgets(line, MAXWLEN * 2, fd) && !got_int) |