Jan Edmund Lazo
44c111e49f
vim-patch:8.0.1758: open_line() returns TRUE/FALSE for success/failure
...
Problem: open_line() returns TRUE/FALSE for success/failure.
Solution: Return OK or FAIL.
24a2d7264f
2018-11-01 23:19:25 -04: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
Justin M. Keyes
7a26b9b62b
vim-patch:8.1.0372: screen updating slow when 'cursorline' is set ( #8986 )
...
Problem: Screen updating slow when 'cursorline' is set.
Solution: Only redraw the old and new cursor line, not all lines.
90a997987d
2018-09-12 23:06:26 +02:00
Jan Edmund Lazo
38c52c63ac
vim-patch:8.0.1809: various typos
...
Problem: Various typos.
Solution: Correct the mistakes, change "cursur" to "cursor". (closes vim/vim#2887 )
b946482190
2018-09-11 23:02:22 -04:00
Jan Edmund Lazo
61df24b998
vim-patch:8.0.1154: 'indentkeys' does not work properly ( #8980 )
...
Problem: 'indentkeys' does not work properly. (Gary Johnson)
Solution: Get the cursor line again. (Christian Brabandt, closes vim/vim#2151 )
1b38344e00
2018-09-11 19:55:46 +02: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
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