aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.2.0894: :mkspell can take very long if the word count is highJan Edmund Lazo2020-07-19
| | | | | | | Problem: :mkspell can take very long if the word count is high. Solution: Use long to avoid negative numbers. Increase the limits by 20% if the compression did not have effect. https://github.com/vim/vim/commit/59f88fbf24b21dbae114a79a15695fa2c3a09fca
* vim-patch:8.2.1169: write NUL past allocated space using corrupted spell fileJan Edmund Lazo2020-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Write NUL past allocated space using corrupted spell file. (Markus Vervier) Solution: Init "c" every time. https://github.com/vim/vim/commit/97d2f34c8763ab3a46c9f43284cc17bad3cf9568 N/A patches for version.c: vim-patch:8.0.1531: cannot use 24 bit colors in MS-Windows console Problem: Cannot use 24 bit colors in MS-Windows console. Solution: Add support for vcon. (Nobuhiro Takasaki, Ken Takasaki, fixes vim/vim#1270, fixes vim/vim#2060) https://github.com/vim/vim/commit/cafafb381a04e33f3ce9cd15dd9f94b73226831f vim-patch:8.0.1544: when using 'termguicolors' SpellBad doesn't show Problem: When using 'termguicolors' SpellBad doesn't show. Solution: When the GUI colors are not set fall back to the cterm colors. https://github.com/vim/vim/commit/d4fc577e60d325777d38c00bd78fb9a32c7b1dfa vim-patch:8.0.1589: error for setting 'modifiable' when resetting it Problem: Error for setting 'modifiable' when resetting it. Solution: Check if 'modifiable' was actually set. https://github.com/vim/vim/commit/d7db27bafd1045281c965d9483539748a744de70 vim-patch:8.0.1591: MS-Windows: when reparsing the arguments 'wildignore' matters Problem: MS-Windows: when reparsing the arguments 'wildignore' matters. Solution: Save and reset 'wildignore'. (Yasuhiro Matsumoto, closes vim/vim#2702) https://github.com/vim/vim/commit/20586cb4f4d516a60b96cc02a94b810fea8b8cdb vim-patch:8.0.1712: terminal scrollback is not limited Problem: Terminal scrollback is not limited. Solution: Add the 'terminalscroll' option. https://github.com/vim/vim/commit/8c041b6b95f49f7383cf00e2036cf009b326fa8d Neovim has 'scrollback' option, not 'terminalscroll', to limit scrollback in terminal buffers. vim-patch:8.0.1745: build failure on MS-Windows Problem: Build failure on MS-Windows. Solution: Build job arguments for MS-Windows. Fix allocating job twice. https://github.com/vim/vim/commit/2060892028e05b1325dc0759259254180669eb5e vim-patch:8.0.1747: MS-Windows: term_start() does not set job_info() cmd Problem: MS-Windows: term_start() does not set job_info() cmd. Solution: Share the code from job_start() to set jv_argv. https://github.com/vim/vim/commit/ebe74b73677b06db7d483987a863b41cee051cc0
* vim-patch:8.2.1089: Coverity warns for pointer computationJan Edmund Lazo2020-07-04
| | | | | | Problem: Coverity warns for pointer computation. Solution: Avoid computing a pointer to invalid memory. https://github.com/vim/vim/commit/927b7dd0fe9a0a82b39d600779edb4390ecdeda6
* spellfile: set_spell_chartab() is dead codeJan Edmund Lazo2020-01-26
|
* PVS/V618: fix emsgf format specifier #11643Husain Alshehhi2020-01-01
|
* spellfile: fix pvs/v1048Jan Edmund Lazo2019-12-22
|
* vim-patch:8.1.2268: spell file flag zero is not recognizedJan Edmund Lazo2019-11-09
| | | | | | | Problem: Spell file flag zero is not recognized. Solution: Use -1 as an error value, so that zero can be used as a valid flag number. https://github.com/vim/vim/commit/3d2a47c7823b934e1a85d773b68758c87c3ddc90
* 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
* cleanup: remove mch_fopen in favor of os_fopenJustin M. Keyes2019-07-25
|
* 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
|
* vim-patch:8.1.0528: various typos in commentsJan Edmund Lazo2019-03-26
| | | | | | Problem: Various typos in comments. Solution: Fix the typos. https://github.com/vim/vim/commit/c4568ab37edc01e01f258d64bceddcd01633a268
* build: enable -WshadowJustin M. Keyes2019-01-02
| | | | | | | | | | Note about shada.c: - shada_read_next_item_start was intentionally shadowing `unpacked` and `i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly depended on those variable names. - Macros were changed to parameterize `unpacked` (but not `i`). Macros like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other approach is messy.
* src/nvim/eval.cMichaHoffmann2018-10-07
| | | | | | | | | | src/nvim/eval/typval.c src/nvim/fileio.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/spellfile.c changed some EMSG[..] Macros to emsgf
* fixed lint errorsMichaHoffmann2018-09-24
|
* add func_attr_printf in :MichaHoffmann2018-09-24
| | | | | | | | | | | | | | | | | | | | | | log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
* lint: clean-up after parent commitsZviRackover2018-09-09
|
* Remove has_mbytes local to lines changed in parent commitZviRackover2018-09-09
|
* Refactor: Remove occurences of mb_char2bytesZviRackover2018-09-09
|
* Fix dead assignment.Tapan Prakash2018-08-29
|
* lintJan Edmund Lazo2018-08-11
|
* vim-patch:8.1.0078: "..." used inconsistently in messagesJan Edmund Lazo2018-08-11
| | | | | | Problem: "..." used inconsistently in messages. Solution: Drop the space before " ...". https://github.com/vim/vim/commit/c166927a32fe5c054ad35deecff00aa12c629cf7
* refactor: Replace vim_strrchr() with strrchar() (#8718)ZviRackover2018-08-11
| | | | ref #1474
* lintJan Edmund Lazo2018-08-10
|
* vim-patch:8.0.1490: number of spell regions is spread out through the codeJan Edmund Lazo2018-08-10
| | | | | | Problem: Number of spell regions is spread out through the code. Solution: Define MAXREGIONS. https://github.com/vim/vim/commit/2993ac5fce5450428322ce43aaa5e643e6994443
* vim-patch:8.0.1512: warning for possibly using NULL pointerJan Edmund Lazo2018-07-23
| | | | | | Problem: Warning for possibly using NULL pointer. (Coverity) Solution: Skip using the pointer if it's NULL. https://github.com/vim/vim/commit/e4db7aedab65abadcc84c78e7a10ec7bb62f11cf
* vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
| | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* coverity/13709: spell_add_word: handle failed fseek()Nick Neisen2018-05-17
| | | | | Check the return status after removing a duplicate word. Add a log for a nonzero return status.
* spellfile: Fix clint errorZyX2018-04-22
|
* spellfile: Fix PVS/V547: allocator now never returns NULLZyX2018-04-22
|
* spellfile: Silence PVS/V547: expression may be true on other systemsZyX2018-04-22
|
* spellfile: Fix PVS/V547: allocator never returns NULL nowZyX2018-04-22
|
* spellfile: Fix PVS/V560: allocator never returns NULL nowZyX2018-04-22
|
* build/msvc: Remove unnecessary header includeb-r-o-c-k2018-02-28
|
* vim-patch:8.0.1225: no check for spell region being zeroJustin M. Keyes2018-01-16
| | | | | | | Problem: No check for spell region being zero. (geeknik) Solution: Check for zero. (closes vim/vim#2252) https://github.com/vim/vim/commit/ee03b941241eae1d36bc29b84eec09116cefe7cd
* spellfile: Fix V547: always true conditionZyX2017-05-20
| | | This condition was already checked at the surrounding if() at line 2422.
* *: Add comment to all C filesZyX2017-04-19
|
* spellfile: Fix SAL sections readingZyX2017-04-09
|
* spellfile: Fix clint errorsZyX2017-04-09
|
* spellfile: Fix memory leakZyX2017-04-09
|
* coverity/13689: Check file header with memcmpZyX2017-04-09
| | | | Not that it is actually useful (would fail in any case), but should fix coverity report.
* coverity/13688: Check for NUL bytes in salfromZyX2017-04-09
|
* coverity/13687: Do not allow NUL byte in region namesZyX2017-04-09
|
* spellfile: Use old errorZyX2017-04-09
| | | This makes first test not actually show any change in behaviour.
* coverity/13686: Do not allow NUL byte in precondition regexZyX2017-04-09
| | | | | | | Before this commit it emitted e_spell_trunc in the first case and treated file as completely valid on the second. While first is fine (both errors are actually valid, though old error is probably better), second results in incorrect regex used.
* lintJames McCoy2017-04-09
|
* vim-patch:8.0.0376James McCoy2017-04-09
| | | | | | | Problem: Size computations in spell file reading are not exactly right. Solution: Make "len" a "long" and check with LONG_MAX. https://github.com/vim/vim/commit/6d3c8586fc81b022e9f06c611b9926108fb878c7
* vim-patch:8.0.0322James McCoy2017-04-09
| | | | | | | | | | Problem: Possible overflow with spell file where the tree length is corrupted. Solution: Check for an invalid length (suggested by shqking) https://github.com/vim/vim/commit/399c297aa93afe2c0a39e2a1b3f972aebba44c9d CVE-2017-5953