Mercurial > vim
comparison src/insexpand.c @ 29830:b5bd6521f417 v9.0.0254
patch 9.0.0254: typo in function name
Commit: https://github.com/vim/vim/commit/5fb3aabc2b0edd5573e107bb3bc103c348771f61
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Aug 24 16:48:23 2022 +0100
patch 9.0.0254: typo in function name
Problem: Typo in function name.
Solution: Rename the function. (closes https://github.com/vim/vim/issues/10971)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Aug 2022 18:00:05 +0200 |
parents | f538704ca03b |
children | adb0de8be4ce |
comparison
equal
deleted
inserted
replaced
29829:d3040694216f | 29830:b5bd6521f417 |
---|---|
1493 /* | 1493 /* |
1494 * Add all the words in the line "*buf_arg" from the thesaurus file "fname" | 1494 * Add all the words in the line "*buf_arg" from the thesaurus file "fname" |
1495 * skipping the word at 'skip_word'. Returns OK on success. | 1495 * skipping the word at 'skip_word'. Returns OK on success. |
1496 */ | 1496 */ |
1497 static int | 1497 static int |
1498 thesarurs_add_words_in_line( | 1498 thesaurus_add_words_in_line( |
1499 char_u *fname, | 1499 char_u *fname, |
1500 char_u **buf_arg, | 1500 char_u **buf_arg, |
1501 int dir, | 1501 int dir, |
1502 char_u *skip_word) | 1502 char_u *skip_word) |
1503 { | 1503 { |
1596 p_ic, files[i], *dir, FALSE); | 1596 p_ic, files[i], *dir, FALSE); |
1597 if (thesaurus) | 1597 if (thesaurus) |
1598 { | 1598 { |
1599 // For a thesaurus, add all the words in the line | 1599 // For a thesaurus, add all the words in the line |
1600 ptr = buf; | 1600 ptr = buf; |
1601 add_r = thesarurs_add_words_in_line(files[i], &ptr, *dir, | 1601 add_r = thesaurus_add_words_in_line(files[i], &ptr, *dir, |
1602 regmatch->startp[0]); | 1602 regmatch->startp[0]); |
1603 } | 1603 } |
1604 if (add_r == OK) | 1604 if (add_r == OK) |
1605 // if dir was BACKWARD then honor it just once | 1605 // if dir was BACKWARD then honor it just once |
1606 *dir = FORWARD; | 1606 *dir = FORWARD; |
2081 case Ctrl_F: | 2081 case Ctrl_F: |
2082 // complete filenames | 2082 // complete filenames |
2083 ctrl_x_mode = CTRL_X_FILES; | 2083 ctrl_x_mode = CTRL_X_FILES; |
2084 break; | 2084 break; |
2085 case Ctrl_K: | 2085 case Ctrl_K: |
2086 // complete words from a dictinoary | 2086 // complete words from a dictionary |
2087 ctrl_x_mode = CTRL_X_DICTIONARY; | 2087 ctrl_x_mode = CTRL_X_DICTIONARY; |
2088 break; | 2088 break; |
2089 case Ctrl_R: | 2089 case Ctrl_R: |
2090 // Register insertion without exiting CTRL-X mode | 2090 // Register insertion without exiting CTRL-X mode |
2091 // Simply allow ^R to happen without affecting ^X mode | 2091 // Simply allow ^R to happen without affecting ^X mode |