patch 8.2.3257: calling prop_find() with -1 for ID gives errornous error
Problem: Calling prop_find() with -1 for ID gives errornous error. (Naohiro
Ono)
Solution: When passing -1 use -2. (closes #8674)
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 78dd202..0ac4e89 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -239,6 +239,9 @@
let result = prop_find({'type': 'prop_name', 'lnum': 1}, 'f')
call assert_equal(expected[0], result)
+ " When ID is -1 it's like prop is not found.
+ call assert_equal({}, prop_find({'id': -1}))
+
call prop_clear(1,6)
call prop_type_delete('prop_name')