Jan Edmund Lazo
e105e1242a
vim-patch:8.0.1600: crash when setting t_Co to zero when 'termguicolors' is set
...
Problem: Crash when setting t_Co to zero when 'termguicolors' is set.
Solution: Use IS_CTERM instead of checking the number of colors.
(closes vim/vim#2710 )
f708ac592f
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
11bd0b8870
vim-patch:8.0.1169: highlignting one char too many with 'list' and 'cul'
...
Problem: Highlignting one char too many with 'list' and 'cul'.
Solution: Check for 'list' being active. (Ozaki Kiichi, closes vim/vim#2177 )
5ece3e359c
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
a920ae89e9
vim-patch:8.0.1168: wrong highlighting with combination of match and 'cursorline'
...
Problem: wrong highlighting with combination of match and 'cursorline'.
Solution: Use "line_attr" when appropriate. (Ozaki Kiichi, closes vim/vim#2111 )
But don't highlight more than one character.
0aa398f55a
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
593c0bd77f
vim-patch:8.0.1216: tabline is not always updated for :file command
...
Problem: Tabline is not always updated for :file command. (Norio Takagi)
Solution: Set redraw_tabline. (Hirohito Higashi)
6ce6504808
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
059986e038
vim-patch:8.0.1160: getting tab-local variable fails after closing window
...
Problem: Getting tab-local variable fails after closing window.
Solution: set tp_firstwin and tp_lastwin. (Jason Franklin, closes vim/vim#2170 )
816968defc
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
d671168574
vim-patch:8.0.0890: still many old style tests
...
Problem: Still many old style tests.
Solution: Convert several tests to new style. (Yegappan Lakshmanan)
75373f3808
2018-08-06 21:56:38 -04:00
Justin M. Keyes
1593ee7cf2
Merge #8820 from janlazo/vim-8.0.0671
2018-08-06 19:16:42 +02: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
4df0ea98dc
globals: typebuf_was_filled is bool
2018-08-06 11:49:59 -04:00
Daniel Hahler
3aca372ac8
vim-patch:8.1.0240: g:actual_curbuf set in wrong scope ( #8818 )
...
Problem: g:actual_curbuf set in wrong scope. (Daniel Hahler)
Solution: Prepend the "g:" name space. (closes vim/vim#3279 )
3cb4448b8a
2018-08-06 03:37:15 +02:00
Jan Edmund Lazo
4ca2cf4b47
vim-patch:8.0.1507: timer test is a bit flaky
...
Problem: Timer test is a bit flaky.
Solution: Add it to the list of flaky tests.
bfbea567d8
2018-08-05 17:55:49 -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
fe6e4b3244
vim-patch:8.0.0722: screen is messed by timer up at inputlist() prompt
...
Problem: Screen is messed by timer up at inputlist() prompt.
Solution: Set state to ASKMORE. (closes vim/vim#1843 )
c9041079a1
2018-08-05 17:20:09 -04:00
Jan Edmund Lazo
2b8792e303
vim-patch:8.0.0671: hang when typing CTRL-C in confirm() in timer
...
Problem: When a function invoked from a timer calls confirm() and the user
types CTRL-C then Vim hangs.
Solution: Reset typebuf_was_filled. (Ozaki Kiichi, closes vim/vim#1791 )
4eb6531b03
2018-08-05 17:18:57 -04:00
hyatskov
b42c80e561
eval, ex_getln: Fix incompatible pointer types ( #8792 )
...
Fixes #8786
gcc (GCC) 8.1.1 20180531 warning:
[76/182] Building C object src/nvim/CMakeFiles/nvim.dir/ex_getln.c.o
../src/nvim/ex_getln.c: In function ‘ExpandUserDefined’:
../src/nvim/ex_getln.c:5071:34: warning: cast between incompatible function types from ‘char * (*)(const char * const, const int, const char_u * const* const, const _Bool)’ {aka ‘char * (*)(const char * const, const int, const unsigned char * const* const, const _Bool)’} to ‘void * (*)(char_u *, int, char_u **, int)’ {aka ‘void * (*)(unsigned char *, int, unsigned char **, int)’} [-Wcast-function-type]
retstr = call_user_expand_func((user_expand_func_T)call_func_retstr, xp,
2018-08-05 02:37:00 +02:00
Justin M. Keyes
5d8a47b6e0
syntax.h: fix include #8742
2018-08-05 01:50:25 +02:00
Justin M. Keyes
7a4d167a92
Merge #8742 vim-patch:8.0.0791,0831,1072,1078,1088
2018-08-04 20:12:48 +02:00
Justin M. Keyes
e861da247e
Merge #8749 from janlazo/clint-tristate
2018-08-04 19:37:58 +02:00
Justin M. Keyes
a4c9447623
Merge #8799 from janlazo/nvim-8.0.1541
2018-08-04 19:09:46 +02:00
Jan Edmund Lazo
c51c2f5a65
misc: refactor plines_win{,_nofill}()
...
Add const to params and variables (declare and init on same line).
winheight (param) is bool so replace TRUE/FALSE macros with true/false.
2018-08-02 23:11:27 -04:00
Jan Edmund Lazo
766683622a
fold: add const to foldSplit() variables
2018-08-02 18:29:16 -04:00
Jan Edmund Lazo
6710522751
fold: add const to foldUpdateIEMSRecurse() vars
2018-08-02 17:51:38 -04:00
Jan Edmund Lazo
21acc7c0fa
fold: add const to foldUpdateIEMS() variables
2018-08-02 17:29:21 -04:00
Jan Edmund Lazo
1ec5485db4
fold: add const to checkSmall() variables
2018-08-02 17:15:53 -04:00
Jan Edmund Lazo
20eeb61fb2
fold: declare and init vars in deleteFoldEntry()
...
Use sizeof() on pointer value, not explicit type, for memmove.
2018-08-02 13:10:25 -04:00
Jan Edmund Lazo
a515401cf0
fold: add const to foldMoveTo() variables
...
Declare and initialize variables on same line if possible.
2018-08-02 12:50:50 -04:00
Jan Edmund Lazo
407ac8b42d
fold: add const to deleteFold() variables
...
Declare and initialize variables on same line if possible.
2018-08-02 11:58:50 -04:00
Jan Edmund Lazo
3de785e7b5
fold: add const to hasFoldingWin() variables
...
cache is bool so update callers to pass true/false, not TRUE/FALSE.
2018-08-02 08:44:42 -04:00
Björn Linse
2b9fc9a13f
Merge pull request #8660 from phodge/7688-nvim-buf-lines-should-return-empty-list-for-unloaded-buffer
...
handle unloaded buffers in nvim_buf_*() functions
2018-08-02 13:28:36 +02:00
Jan Edmund Lazo
d2c1d9c466
ex_cmds: add const to helptags_one() variables
2018-08-01 23:21:17 -04:00
Jan Edmund Lazo
144e85b7b9
ex_cmds: add const to fix_help_buffer() variables
2018-08-01 23:02:52 -04:00
Jan Edmund Lazo
d29c02710e
hardcopy: refactor mch_print_start_line()
...
Refactor the following affected functions:
- prt_line_number()
- prt_header()
These use prt_set_font(), refactored in 872a76f3dac14fdcb7dc7b34cecd3acb4370d56f for TriState.
2018-08-01 15:28:50 -04:00
Jan Edmund Lazo
d536fb018f
hardcopy: bold,italic,underline are TriState
2018-08-01 15:28:50 -04:00
Jan Edmund Lazo
c0dbd8df95
fold: use_level,maybe_small are bool
...
use_levelp, maybe_smallp in check_closed() are bool ptrs.
2018-08-01 15:28:50 -04:00
Jan Edmund Lazo
44cb491f6e
globals: virtual_op is TriState
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
faa9869a9e
fold: recursive in deleteFoldEntry() is bool
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
14cffc3d1d
fold: fold_changed is bool
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
667b8cd108
fold: finish in foldUpdateIEMSRecurse() is bool
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
3f8ba68895
screen: screen_cleared is TriState
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
971e9370ad
fold: lineFolded() is bool
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
6dfaf8e914
fold: check_closed() returns bool
...
Update affected variables (ie. had_folded).
Add const to params to restrict usage.
TODO: refactor win_T.w_lines[idx].wl_folded from char to bool
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
4fb9b42869
search: refactor variables in findmatchlimit()
...
Combine declaration and initialization.
Refactor int variables, that use TRUE/FALSE macros (not MAYBE), to bool.
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
ba6417091c
search: start_in_quotes in findmatchlimit is TriState
2018-08-01 15:28:49 -04:00