mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:8.2.0030: "gF" does not work on output of "verbose command"
Problem: "gF" does not work on output of "verbose command".
Solution: Recognize " line " and translations. (closes vim/vim#5391)
64e74c9cc7
This commit is contained in:
@@ -6020,10 +6020,20 @@ file_name_in_line (
|
||||
|
||||
if (file_lnum != NULL) {
|
||||
char_u *p;
|
||||
const char *line_english = " line ";
|
||||
const char *line_transl = _(line_msg);
|
||||
|
||||
// Get the number after the file name and a separator character.
|
||||
// Also accept " line 999" with and without the same translation as
|
||||
// used in last_set_msg().
|
||||
p = ptr + len;
|
||||
p = skipwhite(p);
|
||||
if (STRNCMP(p, line_english, STRLEN(line_english)) == 0) {
|
||||
p += STRLEN(line_english);
|
||||
} else if (STRNCMP(p, line_transl, STRLEN(line_transl)) == 0) {
|
||||
p += STRLEN(line_transl);
|
||||
} else {
|
||||
p = skipwhite(p);
|
||||
}
|
||||
if (*p != NUL) {
|
||||
if (!isdigit(*p)) {
|
||||
p++; // skip the separator
|
||||
|
Reference in New Issue
Block a user