Mercurial > vim
comparison src/findfile.c @ 26909:aa65d1808bd0 v8.2.3983
patch 8.2.3983: error messages are spread out
Commit: https://github.com/vim/vim/commit/eaaac014a01ce37c1f86dbda054c01a5c6f034e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 17:00:40 2022 +0000
patch 8.2.3983: 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 18:15:04 +0100 |
parents | fc859aea8cec |
children | d4e61d61afd9 |
comparison
equal
deleted
inserted
replaced
26908:006aa45685f9 | 26909:aa65d1808bd0 |
---|---|
518 else | 518 else |
519 ff_expand_buffer[len++] = FF_MAX_STAR_STAR_EXPAND; | 519 ff_expand_buffer[len++] = FF_MAX_STAR_STAR_EXPAND; |
520 wc_part = (char_u *)errpt; | 520 wc_part = (char_u *)errpt; |
521 if (*wc_part != NUL && !vim_ispathsep(*wc_part)) | 521 if (*wc_part != NUL && !vim_ispathsep(*wc_part)) |
522 { | 522 { |
523 semsg(_("E343: Invalid path: '**[number]' must be at the end of the path or be followed by '%s'."), PATHSEPSTR); | 523 semsg(_(e_invalid_path_number_must_be_at_end_of_path_or_be_followed_by_str), PATHSEPSTR); |
524 goto error_return; | 524 goto error_return; |
525 } | 525 } |
526 } | 526 } |
527 else | 527 else |
528 ff_expand_buffer[len++] = *wc_part++; | 528 ff_expand_buffer[len++] = *wc_part++; |
1903 if (file_name == NULL && (options & FNAME_MESS)) | 1903 if (file_name == NULL && (options & FNAME_MESS)) |
1904 { | 1904 { |
1905 if (first == TRUE) | 1905 if (first == TRUE) |
1906 { | 1906 { |
1907 if (find_what == FINDFILE_DIR) | 1907 if (find_what == FINDFILE_DIR) |
1908 semsg(_("E344: Can't find directory \"%s\" in cdpath"), | 1908 semsg(_(e_cant_find_directory_str_in_cdpath), |
1909 ff_file_to_find); | 1909 ff_file_to_find); |
1910 else | 1910 else |
1911 semsg(_("E345: Can't find file \"%s\" in path"), | 1911 semsg(_(e_cant_find_file_str_in_path), |
1912 ff_file_to_find); | 1912 ff_file_to_find); |
1913 } | 1913 } |
1914 else | 1914 else |
1915 { | 1915 { |
1916 if (find_what == FINDFILE_DIR) | 1916 if (find_what == FINDFILE_DIR) |
1917 semsg(_("E346: No more directory \"%s\" found in cdpath"), | 1917 semsg(_(e_no_more_directory_str_found_in_cdpath), |
1918 ff_file_to_find); | 1918 ff_file_to_find); |
1919 else | 1919 else |
1920 semsg(_("E347: No more file \"%s\" found in path"), | 1920 semsg(_(e_no_more_file_str_found_in_path), |
1921 ff_file_to_find); | 1921 ff_file_to_find); |
1922 } | 1922 } |
1923 } | 1923 } |
1924 | 1924 |
1925 theend: | 1925 theend: |