aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
Commit message (Collapse)AuthorAge
...
* | ops.c: breakout shared register type formatting codeBjörn Linse2016-02-29
| |
* | eval: add v:event, which will contain data events want to propagate to their ↵Björn Linse2016-02-29
| | | | | | | | | | | | receivers. Add helper functions dict_clear and dict_set_keys_readonly.
* | Merge pull request #3900 from ZyX-I/inf-nan-stringJustin M. Keyes2016-02-28
|\ \ | |/ |/| Make it possible to eval() all floating-point values dumped by string()
| * eval: Return different values when dividing by zeroZyX2016-02-02
| | | | | | | | Fixes #3263
| * eval: Use str2float() to represent inf and nan valuesZyX2016-02-02
| | | | | | Closes #3248
* | Avoid internal errors with setloclist()Marco Hinz2016-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | All syntastic users experienced this problem: E685: Internal error: get_tv_string_buf() It's reproducable with: :call setloclist(0, ['']) So, not given optional arguments to setloclist() lead to some fields not inizilied and the code took the wrong branches.
* | Make set{qf,loc}list() take {title}Marco Hinz2016-02-25
| | | | | | | | | | | | | | | | | | | | Add an extra argument to these functions to set w:quickfix_title. This is a modified version of a patch from vim_dev. Discussion here: https://groups.google.com/forum/#!topic/vim_dev/X7VVPd4Do5s Credits go to Christian "chrisbra" Brabandt and Daniel "blueyed" Hahler.
* | set_vim_var_dict: Allow NULL `val`.Justin M. Keyes2016-02-23
| | | | | | | | Closes #3006
* | Merge pull request #4259 from watiko/vim-7.4.881Justin M. Keyes2016-02-22
|\ \ | | | | | | vim-patch:7.4.{879,881}
| * | vim-patch:7.4.879watiko2016-02-15
| | | | | | | | | | | | | | | | | | | | | Problem: Can't see line numbers in nested function calls. Solution: Add line number to the file name. (Alberto Fanjul) https://github.com/vim/vim/commit/1d6328ca00fc6cfe37b1f5e038ec23f443258886
* | | Make TermClose event return the associated bufferMarco Hinz2016-02-21
| | | | | | | | | | | | | | | | | | | | | <abuf> from the TermClose event now returns the correct buffer number. Prior to this change it would always return the buffer number of the current buffer, which is obviously wrong in an async environment.
* | | Merge pull request #4240 from jbradaric/vim-7.4.888Justin M. Keyes2016-02-19
|\ \ \ | | | | | | | | vim-patch:7.4.888
| * | | eval: Fix linter error.Jurica Bradaric2016-02-15
| | | |
| * | | vim-patch:7.4.888Jurica Bradaric2016-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The OptionSet autocommands are not triggered from setwinvar(). Solution: Do not use switch_win() when not needed. (Hirohito Higashi) https://github.com/vim/vim/commit/ba117c23dfd1146aca3235bea172df17a48bccee
* | | | vim-patch:7.4.844 #4228Jurica Bradaric2016-02-17
|/ / / | | | | | | | | | | | | | | | | | | Problem: When '#' is in 'isident' the is# comparator doesn't work. Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/37a8de17d4dfd3d463960c38a204ce399c8e19d4
* / / vim-patch:7.4.792watiko2016-02-11
|/ / | | | | | | | | | | | | Problem: Can only conceal text by defining syntax items. Solution: Use matchadd() to define concealing. (Christian Brabandt) https://github.com/vim/vim/commit/6561d52ecbe6e24d1b90403078cc8b76c53c42fc
* | vim-patch:7.4.834Jurica Bradaric2016-02-09
| | | | | | | | | | | | | | Problem: gettabvar() doesn't work after Vim start. (Szymon Wrozynski) Solution: Handle first window in tab still being NULL. (Christian Brabandt) https://github.com/vim/vim/commit/7e47d1ac6a9ae0e5a7167aa34ff651a9c39c1641
* | Merge pull request #4178 from watiko/vim-7.4.708Justin M. Keyes2016-02-09
|\ \ | | | | | | vim-patch:7.4.{708,717}
| * | vim-patch:7.4.717watiko2016-02-06
| | | | | | | | | | | | | | | | | | | | | Problem: ":let list += list" can change a locked list. Solution: Check for the lock earlier. (Olaf Dabrunz) https://github.com/vim/vim/commit/1cd5e613b0d8947d52762af0e17351d5e49869de
| * | vim-patch:7.4.708watiko2016-02-06
| | | | | | | | | | | | | | | | | | | | | | | | Problem: gettext() is called too often. Solution: Do not call gettext() for messages until they are actually used. (idea by Yasuhiro Matsumoto) https://github.com/vim/vim/commit/77354e78a887e1b59ac519c5a1cb0e7fe9fc5899
* | | Merge #4152 'vim-patch:7.4.{798,800,805,810,811,814,815,816,817,820,825}'.Justin M. Keyes2016-02-09
|\ \ \
| * | | vim-patch:7.4.816Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Invalid memory access when doing ":fun X(". Solution: Check for missing ')'. (Dominique Pelle) https://github.com/vim/vim/commit/dd8a5286e191d23410c5970a0f17f01c7ff1211b
| * | | vim-patch:7.4.815Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Invalid memory access when doing ":call g:". Solution: Check for an empty name. (Dominique Pelle) https://github.com/vim/vim/commit/73627d0bd43e63a67995ab1c826f1cec4ed22560
* | | | vim-patch:7.4.755Jurica Bradaric2016-02-09
| |/ / |/| | | | | | | | | | | | | | | | | | | | Problem: It is not easy to count the number of characters. Solution: Add the skipcc argument to strchars(). (Hirohito Higashi, Ken Takata) https://github.com/vim/vim/commit/641e48c2248ccb3c25a5cdaa3709f16152d8c77d
* | | ui: revert "gui_running" hackJustin M. Keyes2016-02-03
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plugins (YCM, dispatch.vim) use gui_running to decide behavior; so do some colorschemes. Up to now, nvim lied about gui_running for the benefit of colorschemes and the detriment of all _other_ plugins that check this condition. That's counterproductive: a user employs at most _one_ colorscheme but may use many other plugins which expect the Vim legacy semantics of gui_running. Moreover, colorschemes usually don't _need_ to check gui_running: they can instead set cterm{fg,bg} and gui{fg,bg} in the same :highlight call. It is reasonable for users who want "true color" to modify their colorscheme once (or request upstream to do so) in order to avoid running into quirks in any other plugins. Closes #2782
* / eval: Add +tablineat featureZyX2016-02-01
|/
* Merge pull request #4129 from jbradaric/vim-7.4.745Justin M. Keyes2016-02-01
|\ | | | | vim-patch:7.4.{745,746,747,748}
| * vim-patch:7.4.748Jurica Bradaric2016-01-30
| | | | | | | | | | | | | | Problem: Buffer overflow. Solution: Make the buffer larger. (Kazunobu Kuriyama) https://github.com/vim/vim/commit/6a7e2a668b492b5b574e489790e349a9058e2a48
| * Fix linter errors.Jurica Bradaric2016-01-30
| |
| * vim-patch:7.4.745Jurica Bradaric2016-01-30
| | | | | | | | | | | | | | | | Problem: The entries added by matchaddpos() are returned by getmatches() but can't be set with setmatches(). (Lcd) Solution: Fix setmatches(). (Christian Brabandt) https://github.com/vim/vim/commit/0fce4257727f9d75e488963b73e407d31dd46546
* | vim-patch:7.4.1027watiko2016-02-01
| | | | | | | | | | | | | | Problem: No support for binary numbers. Solution: Add "bin" to nrformats. (Jason Schulz) https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
* | vim-patch:7.4.782watiko2016-02-01
|/ | | | | | | Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode. Solution: Fix the reported problems. (Christian Brabandt) https://github.com/vim/vim/commit/5d1bc78a2b9fbe3e3112afcde7c80eb19d5989f4
* Merge pull request #4096 from justinmk/coverity125476Justin M. Keyes2016-01-28
|\ | | | | coverity/125476: RI: Null pointer dereference
| * file_pat_to_reg_pat(): handle empty string.oni-link2016-01-28
| |
| * glob2regpat(): handle empty string.Justin M. Keyes2016-01-27
| |
| * coverity/125476: RI: Null pointer dereferenceJustin M. Keyes2016-01-27
| |
* | vim-patch:7.4.698Jurica Bradaric2016-01-27
|/ | | | | | | | Problem: Various problems with locked and fixed lists and dictionaries. Solution: Disallow changing locked items, fix a crash, add tests. (Olaf Dabrunz) https://github.com/vim/vim/commit/9bc174b69d2775b0f27ed74bf372608d18c9f3d4
* Merge pull request #4073 from jbradaric/vim-7.4.654Justin M. Keyes2016-01-24
|\ | | | | vim-patch:7.4.654
| * vim-patch:7.4.654Jurica Bradaric2016-01-22
| | | | | | | | | | | | | | | | | | Problem: glob() and globpath() cannot include links to non-existing files. (Charles Campbell) Solution: Add an argument to include all links with glob(). (James McCoy) Also for globpath(). https://github.com/vim/vim/commit/a245bc79b4c6b83a4b5b6cdb95c4d2165762a20b
* | vim-patch:7.4.739Jurica Bradaric2016-01-24
|/ | | | | | | | Problem: In a string "\U" only takes 4 digits, while after CTRL-V U eight digits can be used. Solution: Make "\U" also take eight digits. (Christian Brabandt) https://github.com/vim/vim/commit/acc39888cddbc8082fb3b89c1a46646bdca55e42
* Merge #3916 "Add support for binary numbers".Justin M. Keyes2016-01-21
|\
| * Fix lint issuesJason Schulz2016-01-15
| |
| * Add support for binary numbersJason Schulz2016-01-15
| |
* | job control: implement jobpid() to get PID of jobBjörn Linse2016-01-20
| |
* | job control: add 'detach' option to jobstartBjörn Linse2016-01-20
|/
* vim patches 7.4.955/974/975/989. #3919Michael Ennen2016-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Helped by @Shougo. vim-patch:7.4.955 vim-patch:7.4.974 vim-patch:7.4.975 vim-patch:7.4.989 Port upstream vim patches 955, 974, 975 and 989. Mark patches 964, 968, 970, and 971, and 982 as NA. Update patch list to 1022. patch 7.4.955 Problem: Vim doesn't recognize .pl6 and .pod6 files. Solution: Recognize them as perl6 and pod6. (Mike Eve) patch 7.4.974 Problem: When using :diffsplit the cursor jumps to the first line. Solution: Put the cursor on the line related to where the cursor was before the split. patch 7.4.975 Problem: Using ":sort" on a very big file sometimes causes text to be corrupted. (John Beckett) Solution: Copy the line into a buffer before calling ml_append(). patch 7.4.989 Problem: Leaking memory when hash_add() fails. Coverity error 99126. Solution: When hash_add() fails free the memory. 778 marked as not NA as it will be needed once vim patch 754 is merged Marked as NA: 964 test 87 was deleted 968 tests 86/87 were deleted 970 guarded by: `# if defined(FEAT_GUI_GTK) || defined(PROTO` and is inside a function that no longer exists 971 function table already sorted correctly 982 marked as NA because Neovim tests are only specified in exactly one location
* portability: fix cast.Justin M. Keyes2016-01-10
| | | | | PRId64 format expects int64_t. Regression from c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3.
* portability: use portable format specifierJustin M. Keyes2016-01-10
|
* Improve coding stylewatiko2016-01-10
|
* vim-patch:7.4.1032watiko2016-01-10
| | | | | | | | Problem: message from assert_false() does not look nice. Solution: Handle missing sourcing_name. Use right number of spaces. (Watiko) Don't use line number if it's zero. https://github.com/vim/vim/commit/cbfe32953aea09d35d9ac7e5865c915b14e310c1