summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1334: using tt_member for the class leads to mistakesv9.0.1334Bram Moolenaar2023-02-211-2/+2
| | | | | Problem: Using tt_member for the class leads to mistakes. Solution: Add a separate tt_class field.
* patch 9.0.1330: handling new value of an option has a long "else if" chainv9.0.1330Yegappan Lakshmanan2023-02-201-2/+2
| | | | | Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
* patch 9.0.1320: checking the type of a null object causes a crashv9.0.1320Bram Moolenaar2023-02-181-4/+4
| | | | | | Problem: Checking the type of a null object causes a crash. Solution: Don't try to get the class of a null object. (closes #12005) Handle error from calling a user function better.
* patch 9.0.1251: checking returned value of ga_grow() is inconsistentv9.0.1251Yegappan Lakshmanan2023-01-271-1/+1
| | | | | | Problem: Checking returned value of ga_grow() is inconsistent. Solution: Check for FAIL instaed of "not OK". (Yegappan Lakshmanan, closes #11897)
* patch 9.0.1233: search() loops forever if "skip" is TRUE for all matchesv9.0.1233Bram Moolenaar2023-01-221-1/+2
| | | | | Problem: search() loops forever if "skip" is TRUE for all matches. Solution: Keep the position of the first match.
* patch 9.0.1218: completion includes functions that don't workv9.0.1218Kota Kato2023-01-181-0/+4
| | | | | | Problem: Completion includes functions that don't work. Solution: Skip functions that are not implemented. (Kota Kato, closes #11845)
* patch 9.0.1212: cannot read back what setcellwidths() has donev9.0.1212Kota Kato2023-01-171-0/+2
| | | | | Problem: Cannot read back what setcellwidths() has done. Solution: Add getcellwidths(). (Kota Kato, closes #11837)
* patch 9.0.1203: return type of values() is always list<any>v9.0.1203Bram Moolenaar2023-01-151-2/+30
| | | | | Problem: Return type of values() is always list<any>. Solution: Use the member type if possible. (issue #11822)
* patch 9.0.1166: code is indented more than necessaryv9.0.1166Yegappan Lakshmanan2023-01-091-54/+54
| | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11792)
* patch 9.0.1133: error message names do not match the itemsv9.0.1133Bram Moolenaar2023-01-021-1/+1
| | | | | Problem: Error message names do not match the items. Solution: Add "_str" when the text contains "%s".
* patch 9.0.1132: code is indented more than neededv9.0.1132Yegappan Lakshmanan2023-01-021-148/+152
| | | | | | Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769)
* patch 9.0.1108: type error when using "any" type and adding to floatv9.0.1108Bram Moolenaar2022-12-291-2/+2
| | | | | Problem: Type error when using "any" type and adding a number to a float. Solution: Accept both a number and a float. (closes #11753)
* patch 9.0.1084: code handling low level MS-Windows events cannot be testedv9.0.1084Christopher Plewright2022-12-201-1/+8
| | | | | | Problem: Code handling low level MS-Windows events cannot be tested. Solution: Add test_mswin_event() and tests using it. (Christopher Plewright, closes #11622)
* patch 9.0.1031: Vim9 class is not implemented yetv9.0.1031Bram Moolenaar2022-12-081-1/+13
| | | | | Problem: Vim9 class is not implemented yet. Solution: Add very basic class support.
* patch 9.0.1023: MS-Windows: dynamic loading of libsodium doesn't workv9.0.1023K.Takata2022-12-061-2/+2
| | | | | Problem: MS-Windows: dynamic loading of libsodium doesn't work. Solution: Add "randombytes_random". (Ken Takata, closes #11667)
* patch 9.0.1015: without /dev/urandom srand() seed is too predictablev9.0.1015Yasuhiro Matsumoto2022-12-051-2/+25
| | | | | | Problem: Without /dev/urandom srand() seed is too predictable. Solution: Use micro seconds and XOR with process ID. (Yasuhiro Matsumoto, closes #11656)
* patch 9.0.1007: there is no way to get a list of swap file namesv9.0.1007Bram Moolenaar2022-12-051-0/+14
| | | | | | Problem: There is no way to get a list of swap file names. Solution: Add the swapfilelist() function. Use it in the test script to clean up. Remove deleting individual swap files.
* patch 9.0.0988: using feedkeys() does not show up in a channel logv9.0.0988Bram Moolenaar2022-12-021-54/+59
| | | | | Problem: Using feedkeys() does not show up in a channel log. Solution: Add ch_log() calls and clean up the code.
* patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977Bram Moolenaar2022-11-301-2/+2
| | | | | | Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
* patch 9.0.0936: wrong type for "isunnamed" returned by getreginfo()v9.0.0936Bram Moolenaar2022-11-241-1/+1
| | | | | Problem: Wrong type for "isunnamed" returned by getreginfo(). Solution: Use VAR_BOOL instead of VAR_SPECIAL. (closes #11598)
* patch 9.0.0916: getbufline() is inefficient for getting a single linev9.0.0916Bram Moolenaar2022-11-211-0/+2
| | | | | Problem: getbufline() is inefficient for getting a single line. Solution: Add getbufoneline().
* patch 9.0.0881: cannot get the currently showing mouse shapev9.0.0881Bram Moolenaar2022-11-141-0/+2
| | | | | Problem: Cannot get the currently showing mouse shape. Solution: Add getmouseshape().
* patch 9.0.0863: col() and charcol() only work for the current windowv9.0.0863Yegappan Lakshmanan2022-11-121-5/+28
| | | | | | Problem: col() and charcol() only work for the current window. Solution: Add an optional winid argument. (Yegappan Lakshmanan, closes #11466, closes #11461)
* patch 9.0.0795: readblob() always reads the whole filev9.0.0795K.Takata2022-10-191-1/+2
| | | | | | Problem: readblob() always reads the whole file. Solution: Add arguments to read part of the file. (Ken Takata, closes #11402)
* patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij2022-10-131-15/+3
| | | | | | Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
* patch 9.0.0712: wrong column when calling setcursorcharpos() with zero lnumv9.0.0712Bram Moolenaar2022-10-101-12/+14
| | | | | | Problem: Wrong column when calling setcursorcharpos() with zero lnum. Solution: Set the line number before calling buf_charidx_to_byteidx(). (closes #11329)
* patch 9.0.0703: failing check for argument type for const anyv9.0.0703Bram Moolenaar2022-10-091-107/+77
| | | | | Problem: Failing check for argument type for const any. Solution: Check for any type properly. (closes #11316)
* patch 9.0.0683: cannot specify a time for :echowindowv9.0.0683Bram Moolenaar2022-10-071-0/+2
| | | | | | Problem: Cannot specify a time for :echowindow. Solution: A count can be used to specify the display time. Add popup_findecho().
* patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij2022-10-041-7/+1
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
* patch 9.0.0629: get an error for using const only when executingv9.0.0629Bram Moolenaar2022-09-301-10/+55
| | | | | | Problem: Get an error for using const only when executing. Solution: Check for const at compile time for filter(), map(), remove(), reverse(), sort() and uniq().
* patch 9.0.0623: error for modifying a const is not detected at compile timev9.0.0623Bram Moolenaar2022-09-291-3/+47
| | | | | Problem: Error for modifying a const is not detected at compile time. Solution: Add TTFLAG_CONST and check for it in add() and extend().
* patch 9.0.0618: calling function for reduce() has too much overheadv9.0.0618Bram Moolenaar2022-09-281-1/+1
| | | | | Problem: Calling function for reduce() has too much overhead. Solution: Do not create a funccall_T every time.
* patch 9.0.0520: declaring a loop variable at the start of a block is clumsyv9.0.0520Bram Moolenaar2022-09-201-14/+8
| | | | | | Problem: Declaring a loop variable at the start of a block is clumsy. Solution: Declare the variable inside the loop in a few places to see if this works.
* patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar2022-09-171-39/+26
| | | | | Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
* patch 9.0.0474: fullcommand() test failurev9.0.0474Bram Moolenaar2022-09-151-1/+1
| | | | | Problem: fullcommand() test failure. Solution: Update function table.
* patch 9.0.0449: there is no easy way to translate a key code into a stringv9.0.0449zeertzjq2022-09-121-0/+21
| | | | | | Problem: There is no easy way to translate a string with a key code into a readable string. Solution: Add the keytrans() function. (closes #11114)
* patch 9.0.0430: cannot use repeat() with a blobv9.0.0430Bakudankun2022-09-091-3/+38
| | | | | Problem: Cannot use repeat() with a blob. Solution: Implement blob repeat. (closes #11090)
* patch 9.0.0375: the footer feature is unusedv9.0.0375Bram Moolenaar2022-09-041-7/+1
| | | | | Problem: The footer feature is unused. Solution: Remove FEAT_FOOTER and code.
* patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan2022-09-021-26/+9
| | | | | | Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
* patch 9.0.0345: error message for list argument could be clearerv9.0.0345Bram Moolenaar2022-09-011-4/+1
| | | | | Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
* patch 9.0.0338: return value of list_append_list() not always checkedv9.0.0338Bram Moolenaar2022-08-311-2/+8
| | | | | Problem: Return value of list_append_list() not always checked. Solution: Check return value and handle failure.
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-17/+5
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0331: cannot use items() on a stringv9.0.0331Bram Moolenaar2022-08-301-4/+6
| | | | | Problem: Cannot use items() on a string. Solution: Make items() work on a string. (closes #11016)
* patch 9.0.0327: items() does not work on a listv9.0.0327Bram Moolenaar2022-08-301-1/+1
| | | | | Problem: items() does not work on a list. (Sergey Vlasov) Solution: Make items() work on a list. (closes #11013)
* patch 9.0.0285: it is not easy to change the command line from a pluginv9.0.0285Shougo Matsushita2022-08-271-5/+4
| | | | | Problem: It is not easy to change the command line from a plugin. Solution: Add setcmdline(). (Shougo Matsushita, closes #10869)
* patch 9.0.0282: a nested timout stops the previous timeoutv9.0.0282Bram Moolenaar2022-08-261-1/+2
| | | | | Problem: A nested timout stops the previous timeout. Solution: Ignore any nested timeout.
* patch 9.0.0280: the builtin termcap list depends on the versionv9.0.0280Bram Moolenaar2022-08-261-14/+2
| | | | | Problem: The builtin termcap list depends on the version. Solution: Always include all termcap entries. Remove duplicate lines.
* patch 9.0.0279: the tiny version has the popup menu but not 'wildmenu'v9.0.0279Bram Moolenaar2022-08-261-9/+1
| | | | | Problem: The tiny version has the popup menu but not 'wildmenu'. Solution: Graduate the wildmenu feature.
* patch 9.0.0278: the +wildignore feature is nearly always availablev9.0.0278Bram Moolenaar2022-08-261-7/+1
| | | | | Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency.
* patch 9.0.0270: some values of 'path' and 'tags' invalid in the tiny versionv9.0.0270Bram Moolenaar2022-08-251-7/+1
| | | | | Problem: Some values of 'path' and 'tags' do not work in the tiny version. Solution: Graduate the +path_extra feature.