Lines Matching refs:one

24   call prop_type_add('one', {})
26 let proptype = 'one'->prop_type_get()
34 call prop_type_delete('one')
56 call prop_type_add('one', {'bufnr': bufnr})
57 let proptype = prop_type_get('one', {'bufnr': bufnr})
65 call prop_type_delete('one', {'bufnr': bufnr})
70 call assert_fails("call prop_type_add('one', {'bufnr': 98764})", "E158:")
104 call prop_type_add('one', {})
111 call prop_type_delete('one')
118 call setline(1, 'one two three')
119 call prop_add(1, 1, {'length': 3, 'id': 11, 'type': 'one'})
128 \ #{type_bufnr: 0, col: 1, length: 3, id: 11, type: 'one', start: 1, end: 1},
136 call setline(1, ['one one one', 'twotwo', 'three', 'fourfour', 'five', 'sixsix'])
138 " Add two text props on lines 1 and 5, and one spanning lines 2 to 4.
299 call assert_equal({}, prop_find({'id': 130000, 'type': 'one', 'both': 1}))
346 call setline(1, ['one one one', 'two two two', 'six six six', 'ten ten ten'])
347 call prop_add_list(#{type: 'one', id: 2},
349 call assert_equal([#{id: 2, col: 1, type_bufnr: 0, end: 1, type: 'one',
351 call assert_equal([#{id: 2, col: 5, type_bufnr: 0, end: 1, type: 'one',
353 call assert_equal([#{id: 2, col: 6, type_bufnr: 0, end: 0, type: 'one',
355 call assert_equal([#{id: 2, col: 1, type_bufnr: 0, end: 1, type: 'one',
361 call assert_fails('call prop_add_list(#{type: "one"}, [[]])', 'E474:')
362 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, 1, 1], {}])', 'E714:')
363 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, "a"]])', 'E474:')
364 call assert_fails('call prop_add_list(#{type: "one"}, [[2, 2]])', 'E474:')
365 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, 2], [2, 2]])', 'E474:')
366 call assert_fails('call prop_add_list(#{type: "one"}, [[1, 1, 1, 2], [4, 1, 5, 2]])', 'E966:')
367 call assert_fails('call prop_add_list(#{type: "one"}, [[3, 1, 1, 2]])', 'E966:')
368 call assert_fails('call prop_add_list(#{type: "one"}, [[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:')
369 call assert_fails('eval #{type: "one"}->prop_add_list([[2, 2, 2, 2], [3, 20, 3, 22]])', 'E964:')
371 call assert_fails('call prop_add_list(#{type: "one"}, test_null_list())', 'E714:')
372 call assert_fails('call prop_add_list(#{type: "one"}, [test_null_list()])', 'E714:')
390 call assert_equal(1, prop_remove({'type': 'one'}, 1))
395 call assert_fails("call prop_remove({'type': 'one', 'bufnr': 123456}, 1)", 'E158:')
442 call prop_add(1, 2, {'length': 3, 'id': 11, 'type': 'one'})
445 \ #{type_bufnr: 0, col: 2, length: 3, id: 11, type: 'one', start: 1, end: 1},
457 call setline(lnum, 'one two three')
461 call prop_add(lnum, 1, {'length': 3, 'id': 11, 'type': 'one', 'bufnr': bufnr})
467 \ #{type_bufnr: 0, col: 1, length: 3, id: 11, type: 'one', start: 1, end: 1},
498 call prop_remove({'type': 'one', 'bufnr': bufnr}, 1)
504 call prop_remove({'type': 'one', 'bufnr': bufnr}, 3, 4)
510 call prop_remove({'type': 'one', 'bufnr': bufnr})
526 call assert_equal('one xtwoxx', getline(1))
683 " Set first line to 'one two three'
689 " Change "n" in "one" to XX: 'oXXe two three'
769 call setline(1, ['one', 'twotwo', 'three', 'fourfour', 'five'])
876 call setline(1, ['one one', 'two two', 'three three', 'four four', 'five'])
1014 " delete one char moves the property
1244 call prop_type_add('one', {'bufnr': buf})
1245 call prop_add(1, 1, {'type': 'one', 'id': 234})
1249 call prop_type_delete('one', {'bufnr': buf})
1529 call setline(1, ['one ', 'two '])