mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
vim-patch:8.2.0539: comparing two NULL list fails
Problem: Comparing two NULL list fails. Solution: Change the order of comparing two lists.7b293c730b
N/A patches for version.c: vim-patch:8.2.1187: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Disable Test_zz2_terminal_guioptions_bang() for now.c85156bb89
vim-patch:8.2.1188: memory leak with invalid json input Problem: Memory leak with invalid json input. Solution: Free all keys at the end. (Dominique Pellé, closes vim/vim#6443, closes vim/vim#6442)6d3a7213f5
vim-patch:8.2.1196: build failure with normal features Problem: Build failure with normal features. Solution: Add #ifdef.83e7450053
vim-patch:8.2.1198: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Move test function to terminal3 to see if the problem moves too.a4b442614c
This commit is contained in:
@@ -799,10 +799,14 @@ bool tv_list_equal(list_T *const l1, list_T *const l2, const bool ic,
|
||||
if (l1 == l2) {
|
||||
return true;
|
||||
}
|
||||
if (l1 == NULL || l2 == NULL) {
|
||||
if (tv_list_len(l1) != tv_list_len(l2)) {
|
||||
return false;
|
||||
}
|
||||
if (tv_list_len(l1) != tv_list_len(l2)) {
|
||||
if (tv_list_len(l1) == 0) {
|
||||
// empty and NULL list are considered equal
|
||||
return true;
|
||||
}
|
||||
if (l1 == NULL || l2 == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user