summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-4/+4
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-3/+3
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1361: Python setuptools don't work with Python 3v8.1.1361Bram Moolenaar2019-05-201-2/+9
| | | | | | Problem: Python setuptools don't work with Python 3. Solution: Add dummy implementation for find_module. (Joel Frederico, closes #4402, closes #3984
* patch 8.1.1346: error for Python exception does not show useful infov8.1.1346Bram Moolenaar2019-05-181-0/+2
| | | | | | Problem: Error for Python exception does not show useful info. Solution: Show the last line instead of the first one. (Ben Jackson, closes #4381)
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-5/+0
| | | | | | Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
* patch 8.1.1291: not easy to change directory and restorev8.1.1291Bram Moolenaar2019-05-071-1/+1
| | | | | Problem: Not easy to change directory and restore. Solution: Add the chdir() function. (Yegappan Lakshmanan, closes #4358)
* patch 8.1.1218: cannot set a directory for a tab pagev8.1.1218Bram Moolenaar2019-04-271-1/+1
| | | | | Problem: Cannot set a directory for a tab page. Solution: Add the tab-local directory. (Yegappan Lakshmanan, closes #4212)
* patch 8.1.1075: function reference count wrong in Python codev8.1.1075Bram Moolenaar2019-03-301-1/+1
| | | | | | Problem: Function reference count wrong in Python code. Solution: Use "O" instead of "N" for the arguments. (Ben Jackson, closes #4188)
* patch 8.1.1045: E315 ml_get error when using Python and hidden bufferv8.1.1045Bram Moolenaar2019-03-231-2/+8
| | | | | | Problem: E315 ml_get error when using Python and hidden buffer. Solution: Make sure the cursor position is valid. (Ben Jackson, closes #4153, closes #4154)
* patch 8.1.0916: with Python 3.7 "find_module" is not made availablev8.1.0916Bram Moolenaar2019-02-141-12/+19
| | | | | | Problem: With Python 3.7 "find_module" is not made available. Solution: Also add "find_module" with Python 3.7. (Joel Frederico, closes #3954)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0810: too many #ifdefsv8.1.0810Bram Moolenaar2019-01-241-9/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4.
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-7/+1
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0744: compiler warnings for signed/unsigned stringsv8.1.0744Bram Moolenaar2019-01-131-5/+11
| | | | | Problem: Compiler warnings for signed/unsigned strings. Solution: A few more type cast fixes.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-10/+10
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0735: cannot handle binary datav8.1.0735Bram Moolenaar2019-01-121-0/+8
| | | | | Problem: Cannot handle binary data. Solution: Add the Blob type. (Yasuhiro Matsumoto, closes #3638)
* patch 8.1.0628: Compiler warning on MS-Windows.v8.1.0628Bram Moolenaar2018-12-231-1/+1
| | | | | Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams)
* patch 8.1.0627: Python cannot handle function name of script-local functionv8.1.0627Bram Moolenaar2018-12-221-5/+25
| | | | | | Problem: Python cannot handle function name of script-local function. Solution: Use <SNR> instead of the special byte code. (Ozaki Kiichi, closes #3681)
* patch 8.1.0247: Python: error message for failing import is incorrectv8.1.0247Bram Moolenaar2018-08-071-28/+59
| | | | | Problem: Python: error message for failing import is incorrect. Solution: Adjust how modules are loaded. (Ozaki Kiichi, closes #3162)
* patch 8.1.0212: preferred cursor column not set in interfacesv8.1.0212Bram Moolenaar2018-07-251-0/+1
| | | | | | Problem: Preferred cursor column not set in interfaces. Solution: Set w_set_curswant when setting the cursor. (David Hotham, closes #3060)
* patch 8.1.0201: newer Python uses "importlib" instead of "imp"v8.1.0201Bram Moolenaar2018-07-221-0/+75
| | | | | Problem: Newer Python uses "importlib" instead of "imp". Solution: Use "importlib" for newer Python versions. (closes #3163)
* patch 8.1.0167: lock flag in new dictitem is reset in many placesv8.1.0167Bram Moolenaar2018-07-081-4/+0
| | | | | Problem: Lock flag in new dictitem is reset in many places. Solution: Always reset the lock flag.
* patch 8.1.0041: attribute "width" missing from python window attribute listv8.1.0041Bram Moolenaar2018-06-101-2/+13
| | | | | | Problem: Attribute "width" missing from python window attribute list. Solution: Add the item. (Ken Takata) Order the list like the items are used in the WindowAttr() function.
* patch 8.0.1846: Python interface is incompatible with lldbv8.0.1846Bram Moolenaar2018-05-151-0/+3
| | | | | | Problem: Python interface is incompatible with lldb. Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang) Partly disabled to avoid a crash.
* patch 8.0.1550: various small problems in source filesv8.0.1550Bram Moolenaar2018-02-271-1/+1
| | | | | Problem: Various small problems in source files. Solution: Fix the problems.
* patch 8.0.1283: test 86 fails under ASANv8.0.1283Bram Moolenaar2017-11-091-1/+3
| | | | | Problem: Test 86 fails under ASAN. Solution: Fix that an item was added to a dictionary twice.
* patch 8.0.1280: Python None cannot be converted to a Vim typev8.0.1280Bram Moolenaar2017-11-091-1/+6
| | | | | Problem: Python None cannot be converted to a Vim type. Solution: Convert it to v:none. (Ken Takata)
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1135: W_WINCOL() is always the samev8.0.1135Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WINCOL() is always the same. Solution: Expand the macro.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-4/+0
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.0860: side effects when channel appends to a bufferv8.0.0860Bram Moolenaar2017-08-041-37/+0
| | | | | | | Problem: There may be side effects when a channel appends to a buffer that is not the current buffer. Solution: Properly switch to another buffer before appending. (Yasuhiro Matsumoto, closes #1926, closes #1937)
* patch 8.0.0607: after :bwipe + :new bufref might still be validv8.0.0607Bram Moolenaar2017-06-041-3/+3
| | | | | | Problem: When creating a bufref, then using :bwipe and :new it might get the same memory and bufref_valid() returns true. Solution: Add br_fnum to check the buffer number didn't change.
* patch 8.0.0360: sometimes VimL is used instead of "Vim script"v8.0.0360Bram Moolenaar2017-02-231-4/+4
| | | | | Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi)
* patch 8.0.0265: may get ml_get error when :pydo deletes linesv8.0.0265Bram Moolenaar2017-01-291-1/+14
| | | | | | Problem: May get ml_get error when :pydo deletes lines or switches to another buffer. (Nikolai Pavlov, issue #1421) Solution: Check the buffer and line every time.
* patch 7.4.2257v7.4.2257Bram Moolenaar2016-08-261-2/+2
| | | | | Problem: Coverity complains about not checking for NULL. Solution: Check for out of memory.
* patch 7.4.2138v7.4.2138Bram Moolenaar2016-08-011-1/+1
| | | | | Problem: Test 86 and 87 fail. Solution: Call func_ref() also for regular functions.
* patch 7.4.2137v7.4.2137Bram Moolenaar2016-08-011-1/+1
| | | | | | | Problem: Using function() with a name will find another function when it is redefined. Solution: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues.
* patch 7.4.2024v7.4.2024Bram Moolenaar2016-07-101-24/+25
| | | | | Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead.
* patch 7.4.1864v7.4.1864Bram Moolenaar2016-06-011-0/+5
| | | | | Problem: Python: encoding error with Python 2. Solution: Use "getcwdu" instead of "getcwd". (Ken Takata)
* patch 7.4.1843v7.4.1843Bram Moolenaar2016-05-251-7/+35
| | | | | Problem: Tests involving Python are flaky. Solution: Set the pt_auto field. Add tests. (Nikolai Pavlov)
* patch 7.4.1769v7.4.1769Bram Moolenaar2016-04-211-0/+1
| | | | | Problem: No "closed", "errors" and "encoding" attribute on Python output. Solution: Add attributes and more tests. (Roland Puntaier, closes #622)
* patch 7.4.1747v7.4.1747Bram Moolenaar2016-04-151-0/+7
| | | | | Problem: Coverity: missing check for NULL pointer. Solution: Check for out of memory.
* patch 7.4.1744v7.4.1744Bram Moolenaar2016-04-151-2/+3
| | | | | Problem: Python: Converting a sequence may leak memory. Solution: Decrement a reference. (Nikolay Pavlov)
* patch 7.4.1743v7.4.1743Bram Moolenaar2016-04-141-1/+1
| | | | | Problem: Clang warns for uninitialzed variable. (Michael Jarvis) Solution: Initialize it.
* patch 7.4.1736v7.4.1736Bram Moolenaar2016-04-141-1/+0
| | | | | Problem: Unused variable. Solution: Remove it. (Yasuhiro Matsumoto)
* patch 7.4.1731v7.4.1731Bram Moolenaar2016-04-141-26/+268
| | | | | Problem: Python: turns partial into simple funcref. Solution: Use partials like partials. (Nikolai Pavlov, closes #734)
* patch 7.4.1646v7.4.1646Bram Moolenaar2016-03-241-1/+14
| | | | | | Problem: Using Python vim.bindeval() on a partial doesn't work. (Nikolai Pavlov) Solution: Add VAR_PARTIAL support in Python.
* patch 7.4.1611v7.4.1611Bram Moolenaar2016-03-191-3/+1
| | | | | | Problem: The versplit feature makes the code uneccessary complicated. Solution: Remove FEAT_VERTSPLIT, always support vertical splits when FEAT_WINDOWS is defined.
* patch 7.4.1559v7.4.1559Bram Moolenaar2016-03-141-1/+1
| | | | | Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
* patch 7.4.1552v7.4.1552Bram Moolenaar2016-03-121-2/+2
| | | | | Problem: ":colorscheme" does not use 'packpath'. Solution: Also use in "start" and "opt" directories in 'packpath'.