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
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
bec5e4cb61
Merge #8832 from eraserhd/vim-insert-setline-undo-fixes
2018-08-14 02:17:05 +02:00
ZviRackover
22311457ab
refactor: Replace vim_strrchr() with strrchar() ( #8718 )
...
ref #1474
2018-08-11 16:14:10 +02:00
Jason Felice
c6dd84e00b
Fix lint
2018-08-09 16:46:50 -07:00
Jason Felice
3c41df2691
vim-patch:8.1.0256: using setline() in TextChangedI splits undo
...
Problem: Using setline() in TextChangedI splits undo.
Solution: Use another solution for undo not working properly.
9fa9506853
This deviates from Vim in the handling of the CursorHoldI event. In
Vim, any buffer changes are merged into the insert. In Neovim,
CursorHoldI is handled via the multiqueue, and the point at which
the cursor hold is implemented (in input.c) doesn't know enough about it.
Making all queued events merge into the insert seems more wronger since
changes by other asynchronous events really should be separately
undoable.
2018-08-09 16:46:50 -07:00
Jason Felice
d45efa5793
vim-patch:8.1.0245: calling setline() in TextChangedI autocmd breaks undo
...
Problem: Calling setline() in TextChangedI autocmd breaks undo. (Jason
Felice)
Solution: Don't save lines for undo when already saved. (closes vim/vim#3291 )
91d2e783b4
2018-08-09 16:46:11 -07:00
Jason Felice
0a8be9f8ef
vim-patch:8.1.0057: popup menu displayed wrong when using autocmd
...
Problem: Popup menu displayed wrong when using autocmd.
Solution: Use aucmd_prepbuf(). Force updating status line if the popup menu
is going to be redrawn anyway. (Christian Brabandt, closes vim/vim#3009 )
6ba3ec1bac
2018-08-09 16:46:01 -07: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
0e4a54a17b
edit: end_insert in check_auto_format() is bool
2018-08-07 13:20:46 -04:00
Jan Edmund Lazo
a2eff8f15c
edit: did_add_space is bool
2018-08-07 13:16:38 -04:00
Jan Edmund Lazo
672449e448
memline: copy in ml_replace() is bool
2018-08-07 13:11:51 -04:00
Jan Edmund Lazo
e6127a49db
edit: temp in ins_del() is const int
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
f53c2578e7
vim-patch:8.0.1575: crash when using virtual replace
...
Problem: Crash when using virtual replace.
Solution: Adjust orig_line_count. Add more tests. (Christian Brabandt)
63e82db6fc
2018-08-06 21:56:39 -04: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
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
b9ab363636
globals: did_si 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
5309ad29d4
globals: can_si_back is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
6bff0f7b60
edit: haveto_redraw (local variable) is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
96f165e744
edit: can_cindent is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
8f75debd86
edit: fix variables in ins_mousescroll()
...
Declare and initialize them on same line.
Add const if possible.
Refactor 'did_scroll' local variable from int to bool.
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
e7e2115de5
vim-patch:8.0.0948: crash if timer closes window while dragging status line
...
Problem: Crash if timer closes window while dragging status line.
Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes
vim/vim#1979 )
989a70c590
2018-08-05 17:42:49 -04:00
Jan Edmund Lazo
0e55d88639
edit: dont_sync_undo is TriState
2018-08-01 15:28:49 -04:00
ZyX
eaf2a25f12
*: Replace b_changedtick with new always-inline functions
...
Ref #8474
2018-06-22 00:44:31 +03:00
Jan Edmund Lazo
b454d24e04
vim-patch:8.0.0669: CTRL-N at start of the buffer does not work correctly ( #8600 )
...
Problem: In Insert mode, CTRL-N at start of the buffer does not work
correctly. (zuloloxi)
Solution: Wrap around the start of the buffer. (Christian Brabandt)
24a9e348aa
2018-06-20 08:17:00 +02:00
ckelsel
33596d5d07
fix lint
2018-06-16 19:46:41 +08:00
ckelsel
ebc7f69d92
vim-patch:8.0.0530: buffer overflow when 'columns' is very big
...
Problem: Buffer overflow when 'columns' is very big. (Nikolai Pavlov)
Solution: Correctly compute where to truncate. Fix translation.
(closes vim/vim#1600 )
658a3a2caf
2018-06-16 19:39:40 +08:00
Justin M. Keyes
4bb039e225
Merge #8543 from janlazo/vim-8.0.0596
2018-06-16 12:01:09 +02:00
Jan Edmund Lazo
3462acbbff
lint
2018-06-13 07:10:17 -04:00
Jan Edmund Lazo
3e0188e92d
vim-patch:8.0.0596: crash when complete() called after complete_add()
...
Problem: Crash when complete() is called after complete_add() in
'completefunc'. (Lifepillar)
Solution: Bail out if compl_pattern is NULL. (closes vim/vim#1668 )
Also avoid using freed memory.
4475b62396
2018-06-13 00:18:50 -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
Justin M. Keyes
23d172a948
Merge #8499 from janlazo/vim-8.0.0533
2018-06-10 14:30:19 +02: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
Jan Edmund Lazo
392b3396fd
vim-patch:8.0.0541: compiler warning on MS-Windows
...
Problem: Compiler warning on MS-Windows.
Solution: Add a type cast. (Mike Williams)
04000560ca
2018-06-08 21:13:33 -04:00
Jan Edmund Lazo
3bcbf802ce
vim-patch:8.0.0533: abbreviation doesn't work after backspacing newline
...
Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk)
Solution: Set the insert start column. (closes vim/vim#1609 )
878c263a48
2018-06-08 21:13:33 -04:00
Justin M. Keyes
d995825c66
Merge #8377 'TextChangedP autocommand'
2018-05-19 11:44:52 +02:00
Shougo Matsushita
021c5875c1
vim-patch:8.0.1494: no autocmd triggered in Insert mode with visible popup menu
...
Problem: No autocmd triggered in Insert mode with visible popup menu.
Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt,
closes vim/vim#2372 , closes vim/vim#1691 )
Fix that the TextChanged autocommands are not always triggered
when sourcing a script.
5a09343719
2018-05-14 19:14:25 +08:00
Justin M. Keyes
53f11dcfc7
Merge #8218 'Fix errors reported by PVS'
...
closes #4983
2018-04-27 09:25:02 +02:00
ZyX
536d9a6168
edit: Fix PVS/V560: remove always true/false checks
2018-04-10 01:12:59 +03:00
Justin M. Keyes
e8c39f72fd
Merge #8226 from justinmk/insert-mode-meta
2018-04-04 04:36:13 +02:00
Justin M. Keyes
224ebc0078
insert-mode: interpret unmapped META as ESC
...
closes #2454
closes #8213
ref #7972
2018-04-04 03:23:15 +02:00
Daniel Hahler
e40e300c16
ins_compl_add_tv: fix memory leaks via get_spec_reg ( #8224 )
...
Fixes #8186
2018-04-03 01:30:48 +02:00
Björn Linse
d407a48665
getchar: implement <Cmd> key to invoke command in any mode
2018-03-23 14:01:49 +01:00