summaryrefslogtreecommitdiff
path: root/src/testdir/test_partial.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 7.4.1720v7.4.1720Bram Moolenaar2016-04-081-6/+10
| | | | | Problem: Tests fail without the job feature. Solution: Skip tests when the job feature is not present.
* patch 7.4.1719v7.4.1719Bram Moolenaar2016-04-081-2/+17
| | | | | | | | Problem: Leaking memory when there is a cycle involving a job and a partial. Solution: Add a copyID to job and channel. Set references in items referred by them. Go through all jobs and channels to find unreferenced items. Also, decrement reference counts when garbage collecting.
* patch 7.4.1715v7.4.1715Bram Moolenaar2016-04-061-0/+18
| | | | | | Problem: Double free when a partial is in a cycle with a list or dict. (Nikolai Pavlov) Solution: Do not free a nested list or dict used by the partial.
* patch 7.4.1646v7.4.1646Bram Moolenaar2016-03-241-0/+14
| | | | | | Problem: Using Python vim.bindeval() on a partial doesn't work. (Nikolai Pavlov) Solution: Add VAR_PARTIAL support in Python.
* patch 7.4.1645v7.4.1645Bram Moolenaar2016-03-241-0/+13
| | | | | | Problem: When a dict contains a partial it can't be redefined as a function. (Nikolai Pavlov) Solution: Remove the partial when overwriting with a function.
* patch 7.4.1644v7.4.1644Bram Moolenaar2016-03-241-0/+13
| | | | | | | Problem: Using string() on a partial that exists in the dictionary it binds results in an error. (Nikolai Pavlov) Solution: Make string() not fail on a recursively nested structure. (Ken Takta)
* patch 7.4.1638v7.4.1638Bram Moolenaar2016-03-221-0/+10
| | | | | | Problem: When binding a function to a dict the reference count is wrong. Solution: Decrement dict reference count, only reference the function when actually making a copy. (Ken Takata)
* patch 7.4.1608v7.4.1608Bram Moolenaar2016-03-191-0/+14
| | | | | Problem: string() doesn't handle a partial. Solution: Make a string from a partial.
* patch 7.4.1589v7.4.1589Bram Moolenaar2016-03-171-0/+30
| | | | | Problem: Combining dict and args with partial doesn't always work. Solution: Use the arguments from the partial.
* patch 7.4.1586v7.4.1586Bram Moolenaar2016-03-171-0/+8
| | | | | Problem: Nesting partials doesn't work. Solution: Append arguments. (Ken Takata)
* patch 7.4.1585v7.4.1585Bram Moolenaar2016-03-171-0/+12
| | | | | | Problem: Partial is not recognized everywhere. Solution: Check for partial in trans_function_name(). (Yasuhiro Matsumoto) Add a test.
* patch 7.4.1582v7.4.1582Bram Moolenaar2016-03-161-2/+21
| | | | | | | Problem: Get E923 when using function(dict.func, [], dict). (Kent Sibilev) Storing a function with a dict in a variable drops the dict if the function is script-local. Solution: Translate the function name. Use dict arg if present.
* patch 7.4.1581v7.4.1581Bram Moolenaar2016-03-161-0/+5
| | | | | | | Problem: Using ":call dict.func()" where the function is a partial does not work. Using "dict.func()" where the function does not take a Dictionary does not work. Solution: Handle partial properly in ":call". (Yasuhiro Matsumoto)
* patch 7.4.1580v7.4.1580Bram Moolenaar2016-03-161-0/+14
| | | | | Problem: Crash when using function reference. (Luchr) Solution: Set initial refcount. (Ken Takata, closes #690)
* patch 7.4.1577v7.4.1577Bram Moolenaar2016-03-151-0/+18
| | | | | Problem: Cannot pass "dict.Myfunc" around as a partial. Solution: Create a partial when expected.
* patch 7.4.1564v7.4.1564Bram Moolenaar2016-03-151-1/+10
| | | | | Problem: An empty list in function() causes an error. Solution: Handle an empty list like there is no list of arguments.
* patch 7.4.1563v7.4.1563Bram Moolenaar2016-03-151-2/+2
| | | | | Problem: Partial test fails on windows. Solution: Return 1 or -1 from compare function.
* patch 7.4.1559v7.4.1559Bram Moolenaar2016-03-141-0/+43
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.