Mercurial > vim
comparison runtime/doc/eval.txt @ 16078:d13aa9c5a1d1 v8.1.1044
patch 8.1.1044: no way to check the reference count of objects
commit https://github.com/vim/vim/commit/c3e92c161d6394d126a334011526c02e8c3f655f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 23 14:23:07 2019 +0100
patch 8.1.1044: no way to check the reference count of objects
Problem: No way to check the reference count of objects.
Solution: Add test_refcount(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4124)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Mar 2019 14:30:05 +0100 |
parents | 096b8ccd855e |
children | bd7461db24b3 |
comparison
equal
deleted
inserted
replaced
16077:e5e2a222cb79 | 16078:d13aa9c5a1d1 |
---|---|
2670 test_null_list() List null value for testing | 2670 test_null_list() List null value for testing |
2671 test_null_partial() Funcref null value for testing | 2671 test_null_partial() Funcref null value for testing |
2672 test_null_string() String null value for testing | 2672 test_null_string() String null value for testing |
2673 test_option_not_set({name}) none reset flag indicating option was set | 2673 test_option_not_set({name}) none reset flag indicating option was set |
2674 test_override({expr}, {val}) none test with Vim internal overrides | 2674 test_override({expr}, {val}) none test with Vim internal overrides |
2675 test_refcount({expr}) Number get the reference count of {expr} | |
2675 test_scrollbar({which}, {value}, {dragging}) | 2676 test_scrollbar({which}, {value}, {dragging}) |
2676 none scroll in the GUI for testing | 2677 none scroll in the GUI for testing |
2677 test_settime({expr}) none set current time for testing | 2678 test_settime({expr}) none set current time for testing |
2678 timer_info([{id}]) List information about timers | 2679 timer_info([{id}]) List information about timers |
2679 timer_pause({id}, {pause}) none pause or unpause a timer | 2680 timer_pause({id}, {pause}) none pause or unpause a timer |
9586 in a way that the test doesn't work properly. | 9587 in a way that the test doesn't work properly. |
9587 When using: > | 9588 When using: > |
9588 call test_override('starting', 1) | 9589 call test_override('starting', 1) |
9589 < The value of "starting" is saved. It is restored by: > | 9590 < The value of "starting" is saved. It is restored by: > |
9590 call test_override('starting', 0) | 9591 call test_override('starting', 0) |
9592 | |
9593 test_refcount({expr}) *test_refcount()* | |
9594 Return the reference count of {expr}. When {expr} is of a | |
9595 type that does not have a reference count, returns -1. Only | |
9596 to be used for testing. | |
9591 | 9597 |
9592 test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()* | 9598 test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()* |
9593 Pretend using scrollbar {which} to move it to position | 9599 Pretend using scrollbar {which} to move it to position |
9594 {value}. {which} can be: | 9600 {value}. {which} can be: |
9595 left Left scrollbar of the current window | 9601 left Left scrollbar of the current window |