aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
...
| * 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
| |\
| | * Merge #6550 from ZyX-I/pvs-check-commentJustin M. Keyes2017-04-20
| | |\
| | | * *: Add comment to all C filesZyX2017-04-19
| | | |
| | * | vim-patch:7.4.2209James McCoy2017-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot map <M-">. (Stephen Riehm) Solution: Solve the memory access problem in another way. (Dominique Pelle) Allow for using <M-\"> in a string. https://github.com/vim/vim/commit/35a4cfa200917dd171b1fff3cd5b6cee9add673d
| | * | vim-patch:7.4.2152James McCoy2017-04-19
| | |/ | | | | | | | | | | | | | | | | | | Problem: No proper translation of messages with a count. Solution: Use ngettext(). (Sergey Alyoshin) https://github.com/vim/vim/commit/ee695f787ade7fd88fc5f5497553d95c0c3645b5
| | * Merge #6533 'Fix PVS-studio warnings'Justin M. Keyes2017-04-17
| | |\
| | | * *: Fix linter errorsZyX2017-04-16
| | | |
| | | * eval: Fix position of buf declarationZyX2017-04-16
| | | |
| | | * eval: Remove unneeded !eap->skip checkZyX2017-04-16
| | | | | | | | | | | | Already checked in the outer if().
| | | * eval: Remove unneeded varp checkZyX2017-04-16
| | | |
| | | * eval: Remove unneeded varp checkZyX2017-04-16
| | | |
| | | * eval: Fix condition in f_serverstopZyX2017-04-16
| | | |
| | | * eval: Refactor nr2char()ZyX2017-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds error messages, checks type and ignores the second argument. Currently utf_char2bytes is able to handle any 31-bit character, not limited by a unicode range. So checking for INT_MAX and not for something else: function yet uses `int`.
| | | * eval: Silence octal constant warningZyX2017-04-16
| | | |
| | | * eval: Fix useless NULL checkZyX2017-04-16
| | | | | | | | | | | | partial_name() as it is written now really cannot return NULL
| | | * eval: Refactor f_char2nrZyX2017-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With has_mbyte equal to 1 and &encoding always UTF-8 second argument is no longer useful: utf_ptr2char is the same as mb_ptr2char. Also changes function behaviour a bit: now if second argument is not a number it immediately returns with error, without bothering to get a character.
| | | * eval: Fix V547: `d == NULL` was already checked at line 2986ZyX2017-04-16
| | | |
| | | * eval: Silence eap->skip false positivesZyX2017-04-16
| | |/ | | | | | | | | | `lnum` starts at `eap->line2` in case of skipping, so cycle is always run at least once.
| | * Merge #6219 from jbradaric/vim-7.4.2170Justin M. Keyes2017-04-16
| | |\ | | | | | | | | vim-patch:7.4.{2170,2180,2240,2241,2242}
| | | * eval.c: Code style fixesJurica Bradaric2017-04-15
| | | |
| | | * Merge remote-tracking branch 'origin/master' into vim-7.4.2170James McCoy2017-04-05
| | | |\
| | | * | vim-patch:7.4.2180Jurica Bradaric2017-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: There is no easy way to stop all timers. There is no way to temporary pause a timer. Solution: Add timer_stopall() and timer_pause(). https://github.com/vim/vim/commit/b73598e2f022a22fec512ea681c70d2775e8fd87
| | | * | vim-patch:7.4.2170Jurica Bradaric2017-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot get information about timers. Solution: Add timer_info(). https://github.com/vim/vim/commit/8e97bd74b5377753597e3d98e7123d8985c7fffd
| * | | | eval: Add comment regarding why special values are neededZyX2017-04-14
| | | | |
| * | | | eval: Change the point at which arg_errmsg and its length are changedZyX2017-04-14
| |/ / / | | | | | | | | | | | | Ref #6437
* | | | lua: Move files from src/nvim/viml/executor to src/nvim/luaZyX2017-04-11
| | | |
* | | | Merge branch 'master' into luaviml'/luaZyX2017-04-10
|\| | |
| * | | lint: fix clint errors around mb_tolower callsBjörn Linse2017-04-10
| | | |
| * | | vim-patch:8.0.0243Björn Linse2017-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When making a character lower case with tolower() changes the byte cound, it is not made lower case. Solution: Add strlow_save(). (Dominique Pelle, closes vim/vim#1406) https://github.com/vim/vim/commit/cc5b22b3bfdc0e9e835cf7871166badda31447bd Join almost identical strup_save and strlow_save functions to one Function.
| * | | mbyte: replace vim_tolower with mb_tolower handling locale correctlyBjörn Linse2017-04-10
| | | |
| * | | lintJames McCoy2017-04-07
| | | |
| * | | vim-patch:8.0.0499James McCoy2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: taglist() does not prioritize tags for a buffer. Solution: Add an optional buffer argument. (Duncan McDougall, closes vim/vim#1194) https://github.com/vim/vim/commit/c6aafbaf3ea755e3ab4ee2e3045911126a08b038
* | | | Merge branch 'master' into luaviml'/luaZyX2017-04-08
|\| | |
| * | | eval: delimit string with NUL byte (#6467)Nicolas Hillegeer2017-04-07
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | A recent refactor left cpy without a NUL terminator, simplify the code instead of patching over it. Instead of plain memcpy, it'd be better to employ harder to misuse string functions made for this purpose like xstrlcpy(), but path_tail() takes char_u arguments and returns them, leading to a lot of ugly casting. Fixes #6431.
| * | eval: Add s flag, use p_fs by default, error out on unknown flagZyX2017-04-03
| | |
| * | eval: Make writefile() able to disable fsync()ZyX2017-04-02
| | |
| * | eval: Do not allocate FileDescriptorZyX2017-04-01
| | |
| * | eval,fileio: Omit additional fsync() callZyX2017-04-01
| | | | | | | | | | | | Fixes #6420
| * | Merge pull request #6397 from jamessan/coverityJames McCoy2017-03-31
| |\ \ | | | | | | | | Fix latest Coverity issues
| | * | coverity/161216: Ensure buf is valid for lifetime of defstrJames McCoy2017-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the type of argument for input()/inputdialog()'s {text} argument, defstr may point to buf. Therefore it needs to be in scope for the lifetime of defstr. Also, use a different buffer for the handling of the 3rd argument to input()/inputdialog(). Although the buffer defstr points to is used immediately, it avoids potential mishaps if the code changes.
| * | | vim-patch:7.4.2104 (#6332)Michael Ennen2017-03-31
| |/ / | | | | | | | | | | | | | | | Problem: Code duplication when unreferencing a function. Solution: De-duplicate. https://github.com/vim/vim/commit/97baee80f0906ee2f651ee1215ec033e84f866ad