Jan Edmund Lazo
5cf96fc141
ops: use ARRAY_SIZE macro for opchars array length
2019-04-10 22:09:59 -04:00
Jan Edmund Lazo
d8d4f05564
vim-patch:8.0.1411: reading invalid memory with CTRL-W :
...
Problem: Reading invalid memory with CTRL-W :.
Solution: Correct the command characters. (closes vim/vim#2469 )
2efb323e87
2019-04-10 20:38:16 -04:00
Jan Edmund Lazo
ed8b4987b7
lint
2019-04-02 07:12:52 -04:00
Jan Edmund Lazo
773086388d
vim-patch:8.1.0118: duplicate error message for put command
...
Problem: Duplicate error message for put command.
Solution: Check return value of u_save(). (Jason Franklin)
f52f9ea8f5
2019-04-01 21:48:01 -04:00
Jan Edmund Lazo
8843928e10
vim-patch:8.0.0681: unnamed register only contains the last deleted text
...
Problem: Unnamed register only contains the last deleted text when
appending deleted text to a register. (Wolfgang Jeltsch)
Solution: Only set y_previous when not using y_append. (Christian Brabandt)
18d90b95c4
2019-04-01 21:29:59 -04:00
Jan Edmund Lazo
cbe4377fde
vim-patch:8.1.0671: cursor in wrong column after auto-format #9729
...
Problem: Cursor in the wrong column after auto-formatting.
Solution: Check for deleting more spaces than adding. (closes vim/vim#3748 )
e1e714ef0d
2019-03-14 11:23:05 +01:00
Justin M. Keyes
7fcf2f926f
TextYankPost: add v:event["inclusive"] #9717
2019-03-13 03:24:09 +01:00
Zach Gleason
0aba4d825a
ops.c: do_join expects count
of 2 or greater #6855
...
test_normal.vim fails if we assert >= 2, so we only check >= 1. That at
least avoids invalid pointers.
TEST_FILE=test_normal.res make oldtest
2019-03-02 04:52:03 +01:00
Justin M. Keyes
ed4132d7e9
cleanup: remove legacy enc_dbcs
global #9660
2019-03-02 02:33:36 +01:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-02-10 13:36:46 +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
2c680a5854
vim-patch:8.0.1779: deleting in a block selection causes problems ( #9099 )
...
Problem: Deleting in a block selection causes problems.
Solution: Check the length of the line before adding bd.textcol and
bd.textlen. (Christian Brabandt, closes vim/vim#2825 )
35e802e713
2018-10-09 09:04:51 +02:00
Jan Edmund Lazo
3c3c733c3c
vim-patch:8.0.1374: CTRL-A does not work with an empty line
...
Problem: CTRL-A does not work with an empty line. (Alex)
Solution: Decrement the end only once. (Hirohito Higashi, closes vim/vim#2387 )
5fe6bdf858
2018-09-16 10:24:59 -04: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
e89df8a54d
vim-patch:8.0.1682: auto indenting breaks inserting a block ( #8892 )
...
Problem: Auto indenting breaks inserting a block.
Solution: Do not check for cursor movement if indent was changed. (Christian
Brabandt, closes vim/vim#2778 )
8c87a2b1fe
2018-08-23 19:13:05 +02:00
Jan Edmund Lazo
6c8851be4e
lint
2018-08-23 10:00:53 -04:00
Jan Edmund Lazo
27fbffeb4f
vim-patch:8.0.1044: warning for uninitialized variable
...
Problem: Warning for uninitialized variable. (John Marriott)
Solution: Initialize ind_pre.
2254a8ad0c
2018-08-23 10:00:53 -04:00
Jan Edmund Lazo
fb68c97ce8
vim-patch:8.0.1043: warning for uninitialized variable
...
Problem: Warning for uninitialized variable. (John Marriott)
Solution: Move code to check indent inside "if".
4ec86ddd77
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
Jan Edmund Lazo
0223c81457
lint
2018-08-17 22:07:55 -04:00
Jan Edmund Lazo
58ad7fc578
ops: refactor get_spec_reg()
...
Return value is bool.
errmsg (param) is bool in here and in getaltfname().
allocated (param) is bool.
2018-08-16 23:05:33 -04:00
Jan Edmund Lazo
015df9c66e
vim-patch:8.0.1787: cannot insert the whole cursor line
...
Problem: Cannot insert the whole cursor line.
Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes vim/vim#2857 )
e2c8d83926
2018-08-16 21:33:30 -04:00
ZviRackover
d110c6d790
lint: cleanup after parent commits
2018-08-16 07:39:48 +03:00
ZviRackover
30392b6356
Remove has_mbyte from lines near changes in parent commit
2018-08-16 06:03:49 +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
d5e8b3f451
misc: fixpos in del_char() is bool
2018-08-07 19:07:54 -04:00
Jan Edmund Lazo
672449e448
memline: copy in ml_replace() is bool
2018-08-07 13:11:51 -04:00
Jan Edmund Lazo
80df0a8fd2
ops: is_del in block_prep() is bool
2018-08-07 12:13:41 -04:00
Jan Edmund Lazo
1468946154
ops: add const to shift_block() variables
2018-08-07 11:35:07 -04:00
Jan Edmund Lazo
7f2e352700
vim-patch:8.0.0879: crash when shifting with huge number
...
Problem: Crash when shifting with huge number.
Solution: Check for overflow. (Dominique Pelle, closes vim/vim#1945 )
bae5a17a73
2018-08-06 21:56:39 -04:00
ZviRackover
5cecd7a93a
style: fixing minor issues noted in code review.
2018-08-06 22:27:10 +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
41dbb69a85
lint
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
47d52e1578
globals: did_ai is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
7692dfeecb
globals: can_si is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
44cb491f6e
globals: virtual_op is TriState
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
b99bbc680e
vim-patch:8.0.0727: message about what register to yank into is not translated
...
Problem: Message about what register to yank into is not translated.
(LemonBoy)
Solution: Add _().
60d0e97497
2018-07-17 09:02:37 -04:00
Jan Edmund Lazo
eab17e5093
vim-patch:8.0.0724: the message for yanking doesn't indicate the register
...
Problem: The message for yanking doesn't indicate the register.
Solution: Show the register name in the "N lines yanked" message. (Lemonboy,
closes vim/vim#1803 , closes vim/vim#1809 )
e45deb7997
2018-07-17 09:01:18 -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
Jan Edmund Lazo
bbb88607c9
vim-patch:8.0.0466: still macros that should be all-caps ( #8510 )
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
8820b48654
2018-06-10 12:24:00 +02:00
KillTheMule
37b8e95fd6
Lint
2018-05-23 22:07:27 +02:00
Peter Hodge
edcc73e766
API: Implement buffer updates
...
Originally written by @phodge in
https://github.com/neovim/neovim/pull/5269 .
2018-05-23 22:07:27 +02:00
Nick Neisen
b44b533ada
coverity/13969: handle u_save() failure
...
Looking at the implementation of u_save suggests that its failure is
a normal and expected situation (e.g. if undo isn't allowed for some
reason, it will fail). Also (most of) the other calls to u_save() in
do_put() return early.
2018-05-17 08:48:42 +02:00
ZyX
4bab9d34e6
*: Fix clint errors
2018-04-22 20:31:40 +03:00
ZyX
95cc2507c9
ops: Fix PVS/V560: pre may not be zero as that was already checked
2018-04-16 11:23:22 +03:00
ZyX
fc1ebb060e
ops: Fix PVS/V614: use of uninitialized variable
...
I have actually no idea how code managed to work and not trigger ASAN/etc here.
It does not look like a false positive at all.
2018-04-15 21:49:47 +03:00
ZyX
dae1975394
ops: Fix PVS/V547: allocator never returns NULL
2018-04-15 21:46:32 +03:00