aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
...
* | vim-patch:7.4.1126James McCoy2016-06-15
| | | | | | | | | | | | | | | | Problem: Can only get the directory of the current window. Solution: Add window and tab arguments to getcwd() and haslocaldir(). (Thinca, Hirohito Higashi) https://github.com/vim/vim/commit/c970330676eaae7ba7cd05cfa46df5a413853ef9
* | Merge #3745 from cacplate/ops_WconversionJustin M. Keyes2016-06-13
|\ \ | | | | | | Enable -Wconversion in ops.c
| * | ops.c: enable -Wconversion warningCharles Joachim2016-05-30
| | |
* | | *: Also fix the adjacent errorsZyX2016-06-11
| | |
* | | *: Fix errors from new linter checksZyX2016-06-11
| | |
* | | Merge #4813 'runtime: clipboard: start daemons in /'.Justin M. Keyes2016-06-10
|\ \ \
| * | | eval: allow setting cwd in {jobstart,termopen}()Aleksa Sarai2016-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Processes in vim are always started in the current directory, which causes issues when the process is a daemon and the current directory is a mountpoint. Fix this by adding an option to set the cwd of the new process with jobstart(). In addition, fix termopen() so that it actually uses the cwd option from the dict (it couldn't previously set the cwd value due to dead code). Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
* | | | Merge pull request #4788 from brcolow/vim-7.4.1051James McCoy2016-06-09
|\ \ \ \ | | | | | | | | | | vim-patch:7.4.{1051,1068}
| * | | | vim-patch:7.4.1068Michael Ennen2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Wrong way to check for unletting internal variables. Solution: Use a better way. (Olaf Dabrunz) https://github.com/vim/vim/commit/71bcfdf30109c3d6e40d143adcaf33964b18a70b
| * | | | vim-patch:7.4.1051Michael Ennen2016-06-09
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Segfault when unletting "count". Solution: Check for readonly and locked first. (Dominique Pelle) Add a test. https://github.com/vim/vim/commit/af8af8bfac5792fa64efbc524032d568cc7754f7
* | | | Merge pull request #4738 from brcolow/vim-7.4.1223James McCoy2016-06-09
|\ \ \ \ | | | | | | | | | | | | | | | vim-patch:7.4.1223
| * | | | vim-patch:7.4.1223Michael Ennen2016-06-09
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when setting v:errors to a number. Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/a542c680a8b42cb766e64d4ee7374ef4dacb7832
* | | | eval.c: Fix linter errors.Jurica Bradaric2016-06-09
| | | |
* | | | vim-patch:7.4.1464Jurica Bradaric2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When the argument of sort() is zero or empty it fails. Solution: Make zero work as documented. (suggested by Yasuhiro Matsumoto) https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
* | | | vim-patch:7.4.1394Jurica Bradaric2016-06-09
|/ / / | | | | | | | | | | | | | | | | | | Problem: Can't sort inside a sort function. Solution: Use a struct to store the sort parameters. (Jacob Niehus) https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
* | | pty_process: split into plat-specific files (#3976)Rui Abreu Ferreira2016-06-04
| | |
* | | Merge pull request #4860 from jamessan/tab-win-precedenceJustin M. Keyes2016-06-04
|\ \ \ | | | | | | | | tcd: Determine correct scope from user input
| * | | tcd: Determine correct scope from user inputJames McCoy2016-06-01
| | | | | | | | | | | | | | | | | | | | | | | | If a user specifies both {window} and {tab}, `getcwd()`/`haslocaldir()` are using "tab" as the scope that should be reported. However, it should be using "window" as the scope, within the specified tab page.
| * | | tcd: Use user-provided tab page for `getcwd()`/`haslocaldir()`James McCoy2016-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial implementation for `:tcd` always used `curtab` to find the specified window. This would result in either inaccurate information or an unexpected error (e.g., when there are more windows in the user-specified tab page vs. the current tab page).
* | | | reorgJustin M. Keyes2016-06-03
|/ / /
* | | timers: stop all timers on teardownBjörn Linse2016-06-01
| | |
* | | *: Rename main loop variable from loop to main_loopZyX2016-05-30
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current name is inappropriate for the following reasons: 1. It is often masked by local `loop` variables. 2. It cannot be searched for. There are many `loop` variables where `loop` is some local variable. There are many cases when “loop” word is used in a comment. 3. It is in any case bad idea to use a generic name as a name of the global variable. Best if global has module prefix: this is why it is in `main.h`: `main_loop` both stands for “a main loop” and “a loop defined in `main.*`”. Since I have no idea how to list every occurrence of this variable method used to rename it is “remove it from globals.h, try to compile, fix errors”. Thus if some occurrence was hidden under false `#if` branch it was not replaced.
* | eval: Stop executing *eval() function at errorZyX2016-05-27
| | | | | | | | | | Fixes #4822 Closes #4823
* | vim-patch:7.4.1567James McCoy2016-05-25
| | | | | | | | | | | | | | Problem: Crash in assert_fails(). Solution: Check for NULL. (Dominique Pelle) Add a test. https://github.com/vim/vim/commit/1abb502635c7f317e05a0cf3ea067101f9d684f5
* | vim-patch:7.4.1096James McCoy2016-05-25
|/ | | | | | | | Problem: Need several lines to verify a command produces an error. Solution: Add assert_fails(). (suggested by Nikolay Pavlov) Make the quickfix alloc test actually work. https://github.com/vim/vim/commit/a260b87d9da17f605666630f18c1ed909c2b8bae
* timers: racy situation found on travisBjörn Linse2016-05-25
|
* eval: implement timers. vim-patch: 7.4.1578, 7.4.1831Björn Linse2016-05-24
| | | | | For the moment, timers are triggered during sleep, but not in wait-for-input modes, like press-RETURN or f_getchar()
* vim-patch:7.4.1516Jurica Bradaric2016-05-19
| | | | | | | Problem: Cannot change file permissions. Solution: Add setfperm(). https://github.com/vim/vim/commit/8049253b96838b3584600e5ad229abad37a95b10
* vim-patch:7.4.1102Jurica Bradaric2016-05-17
| | | | | | | | Problem: Debugger has no stack backtrace support. Solution: Add "backtrace", "frame", "up" and "down" commands. (Alberto Fanjul, closes vim/vim#433) https://github.com/vim/vim/commit/f1f60f859cdbb2638b3662ccf7b1d179865fe7dc
* term_close: fix use-after-freeoni-link2016-05-15
| | | | Closes #4393
* 'termguicolors' #4690Shougo Matsushita2016-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | TODO: Only works at startup (i.e., in the user's init.vim/vimrc/--cmd), but it should probably work at any time. --- patch 7.4.1799 Problem: 'guicolors' is a confusing option name. Solution: Use 'termguicolors' instead. (Hirohito Higashi) https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 patch 7.4.1806 Problem: 'termguicolors' option missing from the options window. Solution: Add the entry. https://github.com/vim/vim/commit/8e3d1b6326c103cc92f8d07b1161ee5172acf201 patch 7.4.1808 Problem: Using wrong feature name to check for 'termguicolors'. Solution: Use the right feature name. (Ken Takata) https://github.com/vim/vim/commit/8a24b794b89916c8074892e7b25121a21f1fa9c9 patch 7.4.1809 Problem: Using wrong short option name for 'termguicolors'. Solution: Use the option name. https://github.com/vim/vim/commit/868cfc19bb079a16ca58884b551486566f35419b
* Merge pull request #4588 from KillTheMule/vim-patch-1285Justin M. Keyes2016-05-10
|\ | | | | vim-patch: 7.4.1285
| * vim-patch:7.4.1285KillTheMule2016-05-08
| | | | | | | | | | | | | | | | | | | | | | Problem: Cannot measure elapsed time. Solution: Add reltimefloat(). https://github.com/vim/vim/commit/79c2c881bb7ae1cbdeeff91d4875b4bf2e54df06 Applied manually. None of the ifdef's applies anymore, and proftime_T was changed into an uint64_T, so the function profile_float to convert proftime_T to float is not needed in nvim.
* | Merge pull request #4720 from jbradaric/vim-7.4.1042Justin M. Keyes2016-05-10
|\ \ | | | | | | vim-patch:7.4.1042
| * | vim-patch:7.4.1042Jurica Bradaric2016-05-08
| |/ | | | | | | | | | | | | | | Problem: g-CTRL-G shows the word count, but there is no way to get the word count in a script. Solution: Add the wordcount() function. (Christian Brabandt) https://github.com/vim/vim/commit/ed767a2073ef150971b0439a58e7ee582af6984e
* | Linting all the daysJames McCoy2016-05-06
| |
* | vim-patch:7.4.1015James McCoy2016-05-06
|/ | | | | | | | | Problem: The column is not restored properly when the matchparen plugin is used in Insert mode and the cursor is after the end of the line. Solution: Set the curswant flag. (Christian Brabandt). Also fix highlighting the match of the character before the cursor. https://github.com/vim/vim/commit/c21d67e33c1b42a492e04788cbb14a23a6724e39
* vim-patch:7.4.672KillTheMule2016-05-02
| | | | | | | | | | | Problem: When completing a shell command, directories in the current directory are not listed. Solution: When "." is not in $PATH also look in the current directory for directories. https://github.com/vim/vim/commit/b5971141dff0c69355fd64196fcc0d0d071d4c82 Most of it applied manually.
* *: Fix new linter errorsZyX2016-05-01
| | | | Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
* normal: convert MCHAR etc operator and register types to enum MotionTypeBjörn Linse2016-05-01
|
* Fix coverity errors in haslocaldir() and getcwd.HiPhish2016-04-27
| | | | | | | | | | | | | | | | | | | | | The Vim function `haslocaldir()` would crash if the users called it with the two arguments `-1, -1`. Now it returns `0` in that case. The coverity issue was complaining about a NULL dereference, but there can never be a case where the pointer `tp` is NULL and being dereferenced. An assertion has been put in place to satisfy coverity. Furthermore the functions themselves have been cleaned up. First of all the documentation comment for the different scopes has been extended and a macro for the minimum scope has been introduced. In both functions any time a scope is used as a range (e.g. in a loop) macros instead of actuals scopes are used, that makes the functions more robust if new scopes are added. Second, in the implementation of `getcwd()` there was a superfluous loop, it has been removed completely. I also changed all `goto end` to plaing `return` statements by moving the allocation of `cwd` down, that way there is no need for `goto` anymore.
* Merge pull request #4649 from justinmk/vimpatchesJustin M. Keyes2016-04-27
|\ | | | | vim-patch:7.4.1092
| * remove disable_char_avail_for_testing()Justin M. Keyes2016-04-26
| | | | | | | | | | | | | | | | test_cursor_func.vim hangs at the call to disable_char_avail_for_testing(). The test does not actually need this function (and it correctly fails if the fix from 7.4.1300 is reverted). Given that disable_char_avail_for_testing is a gigantic hack, if we can avoid it let's do so.
| * vim-patch:7.4.1092Justin M. Keyes2016-04-25
| | | | | | | | | | | | | | | | Problem: It is not simple to test for an exception and give a proper error message. Solution: Add assert_exception(). https://github.com/vim/vim/commit/a803c7f94070f94b831fdfd1984f288c8b825b5d
| * Satisfy the linter.KillTheMule2016-04-25
| |
| * vim-patch:7.4.1300KillTheMule2016-04-25
| | | | | | | | | | | | | | | | | | Problem: Cannot test CursorMovedI because there is typeahead. Solution: Add disable_char_avail_for_testing(). https://github.com/vim/vim/commit/2ab375e54ef4eac438d1aef8b99d9e71f2fa0c63 Most of it manually applied.
* | Merge pull request #4593 from ZyX-I/length-functionsJustin M. Keyes2016-04-26
|\ \ | |/ |/| Make some function accept strings with length in place of just strings
| * *: Fix linter errorsZyX2016-04-18
| |
| * ex_getln: Make get_histtype return HIST_DEFAULT if neededZyX2016-04-18
| |
| * ex_getln: Make get_histtype accept length argumentZyX2016-04-18
| |