aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
Commit message (Collapse)AuthorAge
* refactor: replace TRUE/FALSE with true/false #15425dundargoc2021-08-22
|
* buffer: move BUFEMPTY to a functionThomas Vigouroux2021-07-06
|
* buffer: don't rely on curbuf in BUFEMPTYThomas Vigouroux2021-07-06
|
* vim-patch:8.2.0945: cannot use "z=" when 'spell' is offJan Edmund Lazo2021-06-12
| | | | | | | Problem: Cannot use "z=" when 'spell' is off. Solution: Make "z=" work even when 'spell' is off. (Christian Brabandt, Gary Johnson, closes vim/vim#6227) https://github.com/vim/vim/commit/152e79e94bb935e75b866bd55479648cde11066a
* vim-patch:8.2.0039: memory access error when "z=" has no suggestionsJan Edmund Lazo2021-06-12
| | | | | | Problem: Memory access error when "z=" has no suggestions. Solution: Check for negative index. https://github.com/vim/vim/commit/569fea2c312126dd5a542c4b1aa51095136a2c0d
* vim-patch:8.2.2974: Greek spell checking uses wrong case foldingJan Edmund Lazo2021-06-11
| | | | | | | Problem: Greek spell checking uses wrong case folding. Solution: Fold capital sigma depending on whether it is at the end of a word or not. (closes vim/vim#299) https://github.com/vim/vim/commit/4f135275984722c1b1e9ace72eeeb7ce7e4ec983
* Add 'FUNC_ATTR_NONNULL_RET' to nonnull alloc funcs (#14559)Jan Edmund Lazo2021-05-15
|
* vim-patch:8.2.0295: highlighting for :s wrong when using different separator ↵Ghjuvan Lacambre2021-04-04
| | | | | | | | (#14286) Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes vim/vim#5665) https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd
* Clear prompt_for_number messagesglacambre2021-02-10
| | | | | | This fixes issues in GUIs: https://github.com/akiyosi/goneovim/issues/94 https://github.com/glacambre/firenvim/issues/448
* option: use char* for get_option_value() paramJan Edmund Lazo2021-02-07
| | | | | | 'name' param is casted to char_u* within get_option_value(). Most calls to get_option_value() cast arg to 'name' from char to char_u. Remove these pointless type casts.
* vim-patch:8.2.2379: do spell suggestions twice if 'spellsuggest' contains numberJan Edmund Lazo2021-01-21
| | | | | | Problem: Finding spell suggestions twice if 'spellsuggest' contains number. Solution: Only do internal suggestions once. (closes vim/vim#7713) https://github.com/vim/vim/commit/77a849c4b3d73c228013a047913c90834a93b4f6
* vim-patch:8.2.1907: complete_info().selected may be wrongJan Edmund Lazo2020-12-03
| | | | | | | | | | | | | Problem: Complete_info().selected may be wrong. Solution: Update cp_number if it was never set. (issue vim/vim#6945) https://github.com/vim/vim/commit/f9d51354de069dddc049b9e109b1932c92e5aee6 Misc changes: For variables and function parameters that use "Direction" enum values, update their type from from "int" to "Direction". It is hard to review function parameters that must accept "Direction" enum values only.
* vim-patch:8.1.0810: too many #ifdefsJan Edmund Lazo2020-11-12
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4. https://github.com/vim/vim/commit/264b74fa545edfb92c0d7d08a02c26331cc5b168
* api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* vim-patch:8.2.0957: compiler warning for uninitialized variableJan Edmund Lazo2020-10-14
| | | | | | Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize one variable. https://github.com/vim/vim/commit/2d4070d3b02e775a6f3d5ef52265add270e09a4f
* vim-patch:8.2.0956: spell test failsThomas Vigouroux2020-09-24
| | | | | | Problem: Spell test fails. Solution: Add missing change the spell checking. https://github.com/vim/vim/commit/e0ebeda4d8219a8955001b43ef7a9268452ef7f5
* suggest_trie_walk: Remove invalid FALLTHROUGH annotationJames McCoy2020-09-04
|
* vim-patch:8.2.1560: using NULL pointers in some codeJames McCoy2020-09-04
| | | | | | | | | Problem: Using NULL pointers in some code. (James McCoy) Solution: Avoid adding to a NULL pointer. Use byte as unsigned. https://github.com/vim/vim/commit/9c2b06637b32742cac11bfd66b1a4e84583c6c2e The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't included since they're specific to vim9script support.
* vim-patch:8.2.1564: a few remaining errors from ubsanJan Edmund Lazo2020-09-02
| | | | | | Problem: A few remaining errors from ubsan. Solution: Avoid the warnings. (Dominique Pellé, closes vim/vim#6837) https://github.com/vim/vim/commit/4ad739fc053c1666d07ba1cf59be26cb1c3e52d7
* vim-patch:8.2.1104: Coverity warnts for possible NULL pointer useJan Edmund Lazo2020-07-04
| | | | | | Problem: Coverity warnts for possible NULL pointer use. Solution: Check "pbyts" is not NULL. https://github.com/vim/vim/commit/11b6600c88165c70d9ccbbdd4d9c96e8266e365f
* vim-patch:8.2.1095: may use pointer after freeing itJan Edmund Lazo2020-07-04
| | | | | | Problem: May use pointer after freeing it when text properties are used. Solution: Update redo buffer before calling ml_replace(). https://github.com/vim/vim/commit/6b949615edac2dd33d5e865be8328561f296b045
* vim-patch:8.2.0932: missspelling spelllangJan Edmund Lazo2020-06-18
| | | | | | Problem: Missspelling spelllang. Solution: Add an "l". (Dominique Pelle) https://github.com/vim/vim/commit/f154f3ab2c1eea67afc20140c580ad003752dc72
* vim-patch:8.2.0041: leaking memory when selecting spell suggestionJan Edmund Lazo2020-04-13
| | | | | | Problem: Leaking memory when selecting spell suggestion. Solution: Free previous value at the right time. https://github.com/vim/vim/commit/6c52f8237199ea09abbecdc5b89847c5889c3de1
* vim-patch:8.2.0387: error for possible NULL argument to qsort()Jan Edmund Lazo2020-04-13
| | | | | | | Problem: Error for possible NULL argument to qsort(). Solution: Don't call qsort() when there is nothing to sort. (Dominique Pelle, closes vim/vim#5780) https://github.com/vim/vim/commit/bb65a5690c24ccfce37e210316bf1d0964c91359
* Merge #11763 'spell: remove non-UTF8 dead code'Justin M. Keyes2020-01-26
|\
| * spell: remove enc_utf8 dead codeJan Edmund Lazo2020-01-26
| |
| * spell: zero-init structs to fix garbage ptrsJan Edmund Lazo2020-01-26
| |
* | vim-patch:8.1.1143: may pass weird strings to file name expansionJan Edmund Lazo2020-01-26
|/ | | | | | Problem: May pass weird strings to file name expansion. Solution: Check for matching characters. Disallow control characters. https://github.com/vim/vim/commit/8f130eda4747e4a4d68353cdb650f359fd01469b
* spell: spell_soundfold_sal() is dead codeJan Edmund Lazo2020-01-17
|
* clang/'Logic error': zero-init structJan Edmund Lazo2020-01-17
|
* spell: fix clang logic errorJan Edmund Lazo2019-11-13
| | | | | https://neovim.io/doc/reports/clang/report-487b01.html#EndPath https://neovim.io/doc/reports/clang/report-ce4c3c.html#EndPath
* vim-patch:8.1.2173: searchit() has too many argumentsJaehwang Jerry Jung2019-10-27
| | | | | | Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument. https://github.com/vim/vim/commit/92ea26b925a0835badb0af2d5887238a4198cabb
* Remove dead codeJan Edmund Lazo2019-10-06
|
* vim-patch:8.1.2120: some MB_ macros are more complicated than necessaryJan Edmund Lazo2019-10-06
| | | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline. https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
* vim-patch:8.1.1371: cannot recover from a swap file #11081Jurica Bradarić2019-10-05
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes vim/vim#4369) https://github.com/vim/vim/commit/99499b1c05f85f83876b828eea3f6e14f0f407b4
* lintJustin M. Keyes2019-09-13
|
* getdigits: introduce `strict`, `def` parametersJustin M. Keyes2019-09-13
| | | | | | | | | | | | Problem: During a refactor long ago, we changed the `getdigits_*` familiy of functions to abort on overflow. But this is often wrong, because many of these codepaths are handling user input. Solution: Decide at each call-site whether to use "strict" mode. fix #5555
* Remove excess <stdint.h>Jan Edmund Lazo2019-09-11
|
* spell: assert nonull pointersJan Edmund Lazo2019-09-10
|
* vim-patch:8.1.1124: insert completion flags are mixed upJan Edmund Lazo2019-08-21
| | | | | | Problem: Insert completion flags are mixed up. Solution: Clean up flags use of ins_compl_add() and cp_flags. https://github.com/vim/vim/commit/d9eefe3155277cec71105f52d34a76f7a3237e7f
* Merge pull request #10171 from blueyed/vim-8.1.1318Daniel Hahler2019-08-09
|\ | | | | vim-patch:8.1.1318: code for text changes is in a "misc" file
| * includesDaniel Hahler2019-08-07
| |
* | vim-patch:8.1.1824: crash when correctly spelled word is very long (#10725)Jan Edmund Lazo2019-08-08
|/ | | | | Problem: Crash when correctly spelled word is very long. (Ben Kraft) Solution: Check word length before copying. (closes vim/vim#4778) https://github.com/vim/vim/commit/5bcc5a1ff94bbab1b175e35a72e3df974106b393
* PVS/V560: condition is always true #10630Ihor Antonov2019-07-28
| | | earlier condition leads to short-circuit of the loop
* cleanup: remove mch_fopen in favor of os_fopenJustin M. Keyes2019-07-25
|
* build: fix gcc warnings #10568ddcien2019-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc version 8.3.0 (Debian 8.3.0-6) ../src/nvim/ex_docmd.c: In function ‘commands_array’: ../src/nvim/ex_docmd.c:10192:36: warning: ‘%ld’ directive output may be truncated writing between 1 and 19 bytes into a region of size 10 [-Wformat-truncation=] snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~ ../src/nvim/ex_docmd.c:10192:37: note: format string is defined here snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ../src/nvim/ex_docmd.c:10192:36: note: directive argument in the range [0, 9223372036854775807] snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~ ../src/nvim/ex_docmd.c:10192:9: note: ‘snprintf’ output between 2 and 20 bytes into a destination of size 10 snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/nvim/ex_docmd.c:10205:36: warning: ‘%ld’ directive output may be truncated writing between 1 and 19 bytes into a region of size 10 [-Wformat-truncation=] snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~ ../src/nvim/ex_docmd.c:10205:37: note: format string is defined here snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ../src/nvim/ex_docmd.c:10205:36: note: directive argument in the range [0, 9223372036854775807] snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~ ../src/nvim/ex_docmd.c:10205:9: note: ‘snprintf’ output between 2 and 20 bytes into a destination of size 10 snprintf(str, sizeof(str), "%" PRId64, (int64_t)cmd->uc_def); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/nvim/spell.c: In function ‘did_set_spelllang’: ../src/nvim/spell.c:1631:61: warning: ‘%s’ directive output may be truncated writing up to 254 bytes into a region of size 84 [-Wformat-truncation=] "autocmd VimEnter * call spellfile#LoadFile('%s')|set spell", ^~ ../src/nvim/spell.c:2063:25: spell_load_lang(lang); ~~~~ ../src/nvim/spell.c:1630:7: note: ‘snprintf’ output between 57 and 311 bytes into a destination of size 128 snprintf(autocmd_buf, sizeof(autocmd_buf), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "autocmd VimEnter * call spellfile#LoadFile('%s')|set spell", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lang); ~~~~~ ../src/nvim/window.c: In function ‘win_rotate’: ../src/nvim/window.c:1780:22: warning: ‘wp2’ may be used uninitialized in this function [-Wmaybe-uninitialized] wp2->w_pos_changed = true; ^ ../src/nvim/window.c:1779:22: warning: ‘wp1’ may be used uninitialized in this function [-Wmaybe-uninitialized] wp1->w_pos_changed = true;
* [RFC]vim-patch:8.1.{749,1715} #10545Jan Edmund Lazo2019-07-20
| | | | | | | | | | | | | | | * vim-patch:8.1.1715: emoji characters are seen as word characters for spelling Problem: Emoji characters are seen as word characters for spelling. (Gautam Iyer) Solution: Exclude class 3 from word characters. https://github.com/vim/vim/commit/06e6377009c5763639310fa3bf892dec27a63334 * vim-patch:8.1.0749: error message contains garbage Problem: Error message contains garbage. (Dominique Pelle) Solution: Use correct pointer to failed expression. https://github.com/vim/vim/commit/6acc79f5d4b9d5b02f4ab21ec885e68acc13a2e2
* PVS/V1028: cast operands, not the result #10496Ihor Antonov2019-07-16
|
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* lintJan Edmund Lazo2019-04-30
|