aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
* vim-patch:8.0.0085Jurica Bradaric2017-07-20
| | | | | | | Problem: Using freed memory with recursive function call. (Dominique Pelle) Solution: Make a copy of the function name. https://github.com/vim/vim/commit/8a01f969c198eeb655ad2f96f2796a6f6f4a1924
* vim-patch:7.4.2250ckelsel2017-07-13
| | | | | | | Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle) https://github.com/vim/vim/commit/5b30291785e6b9be1a607504c14bd03c601b59a6
* 'cpoptions': remove "<" flag; ignore <special>Justin M. Keyes2017-07-08
| | | | Closes #6937 "nvim_get_keymap output is unreliable"
* message: Add support for replacing `<` to str2specialZyX2017-07-02
|
* eval: Make nvim_get_keymap output more robustZyX2017-07-02
|
* eval: Use tv_dict_add_allocated_str() for mapblock_fill_dictZyX2017-07-02
|
* *: Adjust usages of modified functionsZyX2017-07-02
|
* eval: Allow running next command after :endfunctionZyX2017-06-20
| | | | | This will still error out on `:endfunction | next`, but defining many functions in one `:execute` should be possible.
* eval: Error out when there is something after :endfunctionZyX2017-06-20
| | | | Ref #6844
* Merge #6827 'Always enable logging'Justin M. Keyes2017-06-07
|\
| * log: Always enable; remove DISABLE_LOGJustin M. Keyes2017-06-07
| | | | | | | | | | | | - Establish ERROR log level as "critical". Such errors are rare and will be valuable when users encounter unusual circumstances. - Set -DMIN_LOG_LEVEL=3 for release-type builds
* | lintJames McCoy2017-06-06
| |
* | *: Fix conversion warnings for tv_get_number*()James McCoy2017-06-06
| |
* | vim-patch:8.0.0614James McCoy2017-06-06
| | | | | | | | | | | | | | | | Problem: float2nr() is not exactly right. Solution: Make float2nr() more accurate. Turn test64 into a new style test. (Hirohito Higashi, closes vim/vim#1688) https://github.com/vim/vim/commit/863e80b4451b5102b41bebf9ddca3a420de746fa
* | Merge remote-tracking branch 'origin/master' into vim-7.4.1975James McCoy2017-06-06
|\|
| * lintJames McCoy2017-06-06
| |
| * vim-patch:8.0.0176James McCoy2017-06-06
| | | | | | | | | | | | | | Problem: Using :change in between :function and :endfunction fails. Solution: Recognize :change inside a function. (ichizok, closes vim/vim#1374) https://github.com/vim/vim/commit/70bcd7336f9f19304f32c52a86ed5b4b3de852c2
| * vim-patch:8.0.0477James McCoy2017-06-06
| | | | | | | | | | | | | | Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report() https://github.com/vim/vim/commit/42205551b140bee8b419b24abe210f56bb80b35e
| * vim-patch:8.0.0360James McCoy2017-06-06
| | | | | | | | | | | | | | Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi) https://github.com/vim/vim/commit/b544f3c81f1e6a50322855681ac266ffaa8e313c
| * vim-patch:8.0.0167James McCoy2017-06-06
| | | | | | | | | | | | | | | | Problem: str2nr() and str2float() do not always work with negative values. Solution: Be more flexible about handling signs. (LemonBoy, closes vim/vim#1332) Add more tests. https://github.com/vim/vim/commit/08243d26d22ad44a857d02c90071578577b8a55d
| * vim-patch:8.0.0158James McCoy2017-06-06
| | | | | | | | | | | | | | | | | | Problem: On MS-Windows some float functions return a different value when passed unusual values. strtod() doesn't work for "inf" and "nan". Solution: Accept both results. Fix str2float() for MS-Windows. Also reorder assert function arguments. https://github.com/vim/vim/commit/6247361101dcccc0c877e90ad67cd0cc83df7c68
* | *: Disable UBSAN for VimL arithmetic implementationJames McCoy2017-06-04
| | | | | | | | | | | | | | | | | | | | | | | | After merging +num64, the 64-bit sanitizer builds show that Vim doesn't buffer the user from C's UB in signed arithmetic. Upstream doesn't appear to be [interested] in fixing the issue, so suppress UBSAN until someone decides to fix the problem. N.B., the problem existed before but went unnoticed since the sanitizer builds weren't being run in 32-bit mode. [interested]: https://groups.google.com/d/topic/vim_dev/_tqf8eQy5eA/discussion
* | lintJames McCoy2017-06-04
| |
* | vim-patch:8.0.0219James McCoy2017-06-04
| | | | | | | | | | | | | | | | Problem: Ubsan reports errors for integer overflow. Solution: Define macros for minimum and maximum values. Select an expression based on the value. (Mike Williams) https://github.com/vim/vim/commit/7a40ea2138102545848ea86a361f1b8dec7552b5
* | vim-patch:7.4.1976James McCoy2017-06-04
|/ | | | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata) https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
* lint: fix indentation of FUNC_ATTR linesBjörn Linse2017-06-03
|
* Merge #4700 from AdnoC/keep-default-registerJustin M. Keyes2017-05-31
|\
| * eval.c: Ignore unnamed register error in f_setregAdnoC2017-05-31
| | | | | | | | | | The error case is already handled and an appropriate error message is already printed.
| * style/lintAdnoC2017-05-31
| |
| * eval: Add ability to set the unnamed register with setregAdnoC2017-05-31
| |
* | channels: implement sockopen() to connect to socketBjörn Linse2017-05-29
| | | | | | | | Helped-By: oni-link <knil.ino@gmail.com>
* | Merge pull request #6680 from mhinz/listen/localhostJames McCoy2017-05-28
|\ \ | | | | | | Use uv_getaddrinfo() for servers
| * | eval: serverstart: Return finalized address to userJames McCoy2017-05-28
| | | | | | | | | | | | | | | In the process of setting up the socket watcher, the address may be changed (e.g., adding the OS-selected port).
| * | Server: use uv_getaddrinfo() for $NVIM_LISTEN_ADDRESSMarco Hinz2017-05-22
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change implicitly adds IPv6 support. If the address contains ":", we try to use a TCP socket instead of a Unix domain socket. Everything in front of the last occurrence of ":" is the hostname and everything after it the port. If the hostname lookup fails, we fall back to using a Unix domain socket. If the port is empty ("localhost:"), a random port will be assigned. Examples: NVIM_LISTEN_ADDRESS=localhost:12345 -> TCP (IPv4 or IPv6), port: 12345 NVIM_LISTEN_ADDRESS=localhost: -> TCP (IPv4 or IPv6), port: random (> 1024) NVIM_LISTEN_ADDRESS=localhost:0 -> TCP (IPv4 or IPv6), port: random (> 1024) NVIM_LISTEN_ADDRESS=localhost -> Unix domain socket "localhost" in current dir
* / get_keymap API (#6236)TJ DeVries2017-05-25
|/ | | | | | | * Add api function get keymap nvim_get_keymap(mode) nvim_buf_get_keymap(buffer, mode)
* eval: Silence V614: potentially uninitialized variableZyX2017-05-20
| | | | | Could not be uninitialized because `func_or_func_caller_profiling` is true only if `do_profiling` is `YES`, and if `do_profiling` is `YES` then `script_prof_save()` was called to initialize the variable.
* eval: Fix V507ZyX2017-05-20
|
* eval: Silence V782ZyX2017-05-20
|
* Merge #6480 from ZyX-I/colored-cmdline'/input-dictJustin M. Keyes2017-05-13
|\
| * eval: Alter E5050 error message, test thatZyX2017-05-10
| |
| * eval: Refactor get_user_input to support dictionaryZyX2017-05-10
| |
* | *: Comment intentional fallthroughsJames McCoy2017-05-12
|/ | | | | Falling through a switch case should be commented so it's clear that behavior is intentional.
* Merge branch 'master' into luaviml'/luaZyX2017-05-08
|\
| * vim-patch:7.4.2231James McCoy2017-04-29
| | | | | | | | | | | | | | Problem: ":oldfiles" output is a very long list. Solution: Add a pattern argument. (Coot, closes vim/vim#575) https://github.com/vim/vim/commit/e11d61a3b1cdedf3144de697a2b38af62c3a78d8
| * api: nvim_get_mode()Justin M. Keyes2017-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Asynchronous API functions are served immediately, which means pending input could change the state of Nvim shortly after an async API function result is returned. nvim_get_mode() is different: - If RPCs are known to be blocked, it responds immediately (without flushing the input/event queue) - else it is handled just-in-time before waiting for input, after pending input was processed. This makes the result more reliable (but not perfect). Internally this is handled as a special case, but _semantically_ nothing has changed: API users never know when input flushes, so this internal special-case doesn't violate that. As far as API users are concerned, nvim_get_mode() is just another asynchronous API function. In all cases nvim_get_mode() never blocks for more than the time it takes to flush the input/event queue (~µs). Note: This doesn't address #6166; nvim_get_mode() will provoke #6166 if e.g. `d` is operator-pending. Closes #6159
| * api/dispatch: Mark generated functions table readonly (#6576)Patrick Jackson2017-04-24
| |
| * api/internal: Remove `set` field from Error type.Justin M. Keyes2017-04-23
| |
| * api_clear_error()Justin M. Keyes2017-04-23
| |
| * api: Do not truncate errors <1 MB. #6237Sander Bosma2017-04-23
| | | | | | | | Closes #5984
| * Merge branch 'master' into lazier-arg_errmsg-gettextZyX2017-04-21
| |\