Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Jan Edmund Lazo
0e7048ae05
lint
2019-04-30 05:13:06 -04:00
Jan Edmund Lazo
bf2ad145e3
vim-patch:8.1.0528: various typos in comments
...
Problem: Various typos in comments.
Solution: Fix the typos.
c4568ab37e
2019-03-26 23:59:01 -04:00
Billy Su
241b905b13
vim-patch:8.0.0643: when a pattern search is slow Vim becomes unusable
...
Problem: When 'hlsearch' is set and matching with the last search pattern
is very slow, Vim becomes unusable. Cannot quit search by
pressing CTRL-C.
Solution: When the search times out set a flag and don't try again. Check
for timeout and CTRL-C in NFA loop that adds states.
fbd0b0af68
2019-03-07 23:27:19 +08:00
raffitz
95fa71c6d2
:recover : Fix crash on non-existent *.swp #9504
...
Reverts d2944e6a29
. mf_open() _can_ fail if the file does not exist.
closes #9503
closes #9504
2019-01-15 00:47:53 +01:00
Justin M. Keyes
a70fde1b45
build: enable -Wshadow
...
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.
2019-01-02 21:06:37 +01:00
Jan Edmund Lazo
300a7a4cf4
replace fallthrough comment with macro
...
Follow-up of vim-patch:8.0.1215
2018-09-21 00:05:06 -04:00
Jan Edmund Lazo
6a329b0548
vim-patch:8.0.1215: newer gcc warns for implicit fallthrough
...
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
2f40d129bf
2018-09-20 06:59:04 -04:00
ZviRackover
329cfc3303
lint: clean-up after parent commits
2018-09-09 10:45:50 +03:00
ZviRackover
ac13e65ae0
Remove has_mbytes local to lines changed in parent commit
2018-09-09 10:45:50 +03:00
ZviRackover
cbdbc4f63d
Refactor: Remove occurences of mb_char2bytes
2018-09-09 10:45:50 +03:00
Justin M. Keyes
a2403a0ed9
Merge #8863 'refactor: Remove mb_head_off() '
2018-08-28 23:37:30 +02:00
Jan Edmund Lazo
6c8851be4e
lint
2018-08-23 10:00:53 -04:00
Jan Edmund Lazo
d677ae5f64
vim-patch:8.0.1041: bogus characters when indenting during visual-block append
...
Problem: Bogus characters appear when indenting kicks in while doing a
visual-block append.
Solution: Recompute when indenting is done. (Christian Brabandt)
e2e69e4813
2018-08-23 10:00:53 -04:00
ZviRackover
d110c6d790
lint: cleanup after parent commits
2018-08-16 07:39:48 +03:00
ZviRackover
2bddc4ca54
Remove occurences of mb_head_off
2018-08-15 22:02:33 +03:00
Justin M. Keyes
b7a417c5e6
Merge #8744 from janlazo/vim-8.0.0890
2018-08-08 02:22:34 +02:00
Jan Edmund Lazo
672449e448
memline: copy in ml_replace() is bool
2018-08-07 13:11:51 -04:00
ZviRackover
5cecd7a93a
style: fixing minor issues noted in code review.
2018-08-06 22:27:10 +03:00
ZviRackover
071aab5148
Remove some occrrences of enc_utf8 and has_mbyte
...
Removing uses and related dead code in the locallity of changes of
the two parent commits.
2018-08-06 20:48:07 +03:00
ZviRackover
cd3b2e4b6b
lint: clean-up after parent commit
2018-08-06 20:48:07 +03:00
ZviRackover
10b6afd652
Remove all occurences of the mb_ptr2char macro
...
First step towards implemening issue #7401 .
The same can be done for all deprecated mb_ functions in follow-up
patches.
2018-08-06 20:48:07 +03:00
Jan Edmund Lazo
84b8612987
vim-patch:8.0.1512: warning for possibly using NULL pointer
...
Problem: Warning for possibly using NULL pointer. (Coverity)
Solution: Skip using the pointer if it's NULL.
e4db7aedab
2018-07-23 08:34:25 -04:00
Jan Edmund Lazo
3c7ea8d619
vim-patch:8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
2018-06-12 02:00:50 -04:00
KunMing Xie
7cc9d2b2b2
vim-patch:8.0.0520: using a function pointer while the function is known ( #8513 )
...
Problem: Using a function pointer instead of the actual function, which we
know.
Solution: Change mb_ functions to utf_ functions when already checked for
Unicode. (Dominique Pelle, closes vim/vim#1582 )
ace95989ed
2018-06-10 12:31:51 +02:00
Justin M. Keyes
d2944e6a29
mf_open(): never fails (except for OOM)
2018-05-17 09:03:44 +02:00
Nick Neisen
c2d1684e05
coverity/13702: open_spellbuf: handle failed ml_open()
2018-05-17 09:03:13 +02:00
ZyX
60577eeaf5
spell: Fix PVS/V512: use of sprintf()
2018-04-22 19:53:06 +03:00
KunMing Xie
8728a5d50b
vim-patch:8.0.0448: some macros are lower case ( #7936 )
...
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
b5aedf3e22
ref #6297
2018-01-30 20:29:15 +01:00
Justin M. Keyes
9cabe826ba
lint
2018-01-16 01:12:16 +01:00
Justin M. Keyes
8eb0888a5d
vim-patch:8.0.0582: illegal memory access with z= command
...
Problem: Illegal memory access with z= command. (Dominique Pelle)
Solution: Avoid case folded text to be longer than the original text. Use
MB_PTR2LEN() instead of MB_BYTE2LEN().
5b276aa80e
2018-01-13 19:42:07 +01:00
KunMing Xie
9ddeb6e187
vim-patch:8.0.0364 ( #7837 )
...
vim-patch:8.0.0364: ]s does not move cursor with two spell errors in one line
Problem: ]s does not move cursor with two spell errors in one line. (Manuel
Ortega)
Solution: Don't stop search immediately when wrapped, search the line first.
(Ken Takata) Add a test.
d3f78dc9eb
* disable spell test for now
2018-01-13 19:26:21 +01:00
ZyX
7f3b9a4acc
Merge branch 'master' into hide-container-impl
2017-12-16 14:27:41 +03:00
Michael Schupikov
d5bce42b52
vim-patch:8.0.0074
...
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
95f096030e
Signed-off-by: Michael Schupikov <michael@schupikov.de >
2017-12-15 15:50:58 -05:00
ZyX
ac4bbf55f6
*: Hide list implementation in other files as well
2017-12-10 22:04:43 +03:00
ckelsel
c805f2cf54
vim-patch:7.4.2250
...
Problem: Some error message cannot be translated.
Solution: Enclose them in _() and N_(). (Dominique Pelle)
5b30291785
2017-07-13 23:15:29 -04:00
ZyX
aaab5e3900
spell: Silence V512: buffer underflow
2017-07-04 18:37:02 +03:00
ZyX
4cb6317900
spell: Fix V728: excessive check
2017-07-04 18:37:02 +03:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
Felipe Oliveira Carvalho
2d72d85b23
refactor: pos_T macros to functions ( #6496 )
2017-04-11 22:44:48 +02:00
Björn Linse
c1cf033981
lint: fix clint errors around mb_tolower calls
2017-04-10 12:02:26 +02:00
Björn Linse
db9ef6263e
mbyte: replace vim_tolower with mb_tolower handling locale correctly
2017-04-10 12:01:40 +02:00
ZyX
c8e63a8db8
eval: Move remaining get_tv_string* functions to eval/typval.c
2017-03-29 10:08:05 +03:00
ZyX
28dafe3ff0
eval,*: Move get_tv_string to typval.c
...
Function was renamed and changed to return `const char *`.
2017-03-29 10:08:05 +03:00
ZyX
e18a578308
*: Move some dictionary functions to typval.h and use char*
...
Also fixes buffer reusage in setmatches() and complete().
2017-03-29 10:07:42 +03:00
ZyX
fb146e80aa
eval: Split eval.c into smaller files
2017-03-29 10:05:06 +03:00
Björn Linse
1d8356a807
mbyte: remove dead code
2017-03-22 17:52:42 +01:00
James McCoy
d72c177b2a
lint
2017-03-11 20:32:39 -05:00
James McCoy
2ed2b1d505
vim-patch:7.4.2223
...
Problem: Buffer overflow when using latin1 character with feedkeys().
Solution: Check for an illegal character. Add a test.
d3c907b5d2
2017-03-11 20:32:38 -05:00
James McCoy
5674057e3a
vim-patch:7.4.2069
...
Problem: spell.c is too big.
Solution: Split it in spell file handling and spell checking.
9ccfebddc3
2017-03-11 20:32:02 -05:00