aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | | | | | | Merge pull request #4064 from oni-link/cs_print_tags_privJustin M. Keyes2016-02-23
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix some problems with cs_print_tags_priv()
| * | | | | | | | | cs_print_tags_priv: Clean up function.oni-link2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Style changes * Variable removal * Comment update
| * | | | | | | | | cs_print_tags_priv: Clear first output line to screen endoni-link2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `:cscope find s <cword>` with the cursor on a very short word like `key` does not output the first line on the screen correctly: Output is `Cscope tag: keyrd>` instead of `Cscope tag: key`. To fix this, clear the screen line after the first line was printed.
| * | | | | | | | | coverity/133892: Resource leakoni-link2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variable tbuf going out of scope leaks the storage it points to. We don't have to use the copy tbuf of a match. Because matches are always in ctags style, we can operate on them directly.
| * | | | | | | | | coverity/133858: Out-of-bounds accessoni-link2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allocating insufficient memory for the terminating NUL of the string. False positive, we allocating more memory than we need.
| * | | | | | | | | coverity/13753: Dereference null return valueoni-link2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dereferencing a pointer that might be null(ptag) when calling strlen(). False positive. A match always contains a tab, so ptag is never null. Because matches are always in ctags style, we can rewrite the code to not use strtok().
* | | | | | | | | | set_vim_var_dict: Allow NULL `val`.Justin M. Keyes2016-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #3006
* | | | | | | | | | coverity/71532: STRING_OVERFLOWJustin M. Keyes2016-02-22
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge pull request #4315 from justinmk/compl_flickerJustin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | completion: Avoid flicker
| * | | | | | | | ins_complete: Avoid semi-global state.Justin M. Keyes2016-02-22
| | | | | | | | |
| * | | | | | | | completion: Avoid flicker.Shougo Matsushita2016-02-21
| | | | | | | | |
* | | | | | | | | test: Reformat legacy test makefile.Lucas Hoffmann2016-02-22
| |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will hopefully reduce the number of merge conflicts when merging the outstanding legacy test migrations.
* | | | | | | | keymap: Support <D-...> (super/command key).Justin M. Keyes2016-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for: - api:vim_input("<D-a>") - ":nnoremap <C-D-S-...>" and permutations thereof UIs must capture the modifier and send it as "<D-...>" to vim_input(). Note: Before this commit, any arbitrary ":nnoremap <{foo}-{bar}>" mapping could already be invoked with feedkeys("\<{foo}-{bar}>"). This commit supports "D-" as a modifier that can be combined with "C-", "A-", "S-" in any order. For non-GUI (terminal) support, user must: :set <D-a>={CSI sequence} then send the {CSI sequence} from their terminal. But this does not work yet (regression #2204). Closes #2190
* | | | | | | | vim-patch:7.4.936 #4271watiko2016-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when dragging with the mouse. Solution: Add safety check for NULL pointer. Check mouse position for valid value. (Hirohito Higashi) https://github.com/vim/vim/commit/294a7e55b01149154807a23323038784549b8946 --- see: "Crash while mouse-selecting in two-buffer mode" https://github.com/vim/vim/issues/486 Fix #3704
* | | | | | | | Merge pull request #4272 from watiko/vim-7.4.937Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | vim-patch:7.4.937
| * | | | | | | | vim-patch:7.4.937watiko2016-02-17
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Segfault reading unitialized memory. Solution: Do not read match \z0, it does not exist. (Marius Gedminas, closes vim/vim#497) https://github.com/vim/vim/commit/5ad075c0735d3d8b97708d17c22de8facb15f997
* | | | | | | | Merge pull request #4267 from watiko/vim-7.4.932Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | vim-patch:7.4.{926,932,933}
| * | | | | | | | version.c: Mark 7.4.935 NAwatiko2016-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: test_utf8 fails on MS-Windows when executed with gvim. Solution: Use the insert flag on feedkeys() to put the string before the ":" that was already read when checking for available chars. https://github.com/vim/vim/commit/6040256d8b0404564ac6f192296b12ea9d175e7d --- feedkeys() is not used by legacy test utf8.
| * | | | | | | | vim-patch:7.4.933watiko2016-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using longest completion match. Solution: Fix array index. https://github.com/vim/vim/commit/e4eda3bc7157932b0bf380fd3fdc1ba8f4438b60
| * | | | | | | | vim-patch:7.4.932watiko2016-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: test_utf8 has confusing dummy command. Solution: Use a real command instead of a colon. https://github.com/vim/vim/commit/8f08dab18df6dbf6c4b4973fd2d480e4bffb82d8
| * | | | | | | | vim-patch:7.4.926watiko2016-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Completing the longest match doesn't work properly with multi-byte characters. Solution: When using multi-byte characters use another way to find the longest match. (Hirohito Higashi) https://github.com/vim/vim/commit/4f8fa1633cdfbd09a41160c8480fe67c198067e9
* | | | | | | | | Merge pull request #4263 from watiko/vim-7.4.901Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.901
| * | | | | | | | | vim-patch:7.4.901watiko2016-02-15
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When a BufLeave autocommand changes folding in a way it syncs undo, undo can be corrupted. Solution: Prevent undo sync. (Jacob Niehus) https://github.com/vim/vim/commit/e7d1376b636e6c758196c3542bd2c1053f9edb75 --- see: "[bug] [patch] Setting foldmethod in WinLeave autocommand can corrupt undo state" https://groups.google.com/d/msg/vim_dev/xF5uMLb1vwY/Jn4RglosDgAJ
* | | | | | | | | Merge pull request #4262 from watiko/vim-7.4.893Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.{891,893,912}
| * | | | | | | | | vim-patch:7.4.912watiko2016-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Wrong indenting for C++ constructor. Solution: Recognize ::. (Anhong) https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
| * | | | | | | | | vim-patch:7.4.893watiko2016-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: C indenting is wrong below a "case (foo):" because it is recognized as a C++ base class construct. Issue #38. Solution: Check for the case keyword. https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
| * | | | | | | | | vim-patch:7.4.891watiko2016-02-15
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Indentation of array initializer is wrong. Solution: Avoid that calling find_start_rawstring() changes the position returned by find_start_comment(), add a test. (Hirohito Higashi) https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
* | | | | | | | | vim-patch:7.4.878 #4258watiko2016-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Coverity error for clearing only one byte of struct. Solution: Clear the whole struct. (Dominique Pelle) https://github.com/vim/vim/commit/69b67f7e774dc212e8c97495ee81c601b8a89ac2
* | | | | | | | | Merge pull request #4310 from jbradaric/vim-7.4.939Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.939
| * | | | | | | | | ex_docmd: Fix code style in ex_matchJurica Bradaric2016-02-21
| | | | | | | | | |
| * | | | | | | | | vim-patch:7.4.939Jurica Bradaric2016-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory leak when encountering a syntax error. Solution: Free the memory. (Dominique Pelle) https://github.com/vim/vim/commit/9a7d58e42ed54406437c2394e5a489ee6a9e4220
* | | | | | | | | | Merge pull request #4250 from jbradaric/vim-7.4.895Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.895
| * | | | | | | | | | ex_docmd: Don't use pre-increment.Jurica Bradaric2016-02-16
| | | | | | | | | | |
| * | | | | | | | | | vim-patch:7.4.895Jurica Bradaric2016-02-16
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Custom command line completion does not work for a command containing digits. Solution: Skip over the digits. (suggested by Yasuhiro Matsumoto) https://github.com/vim/vim/commit/23d1b62746dce048c80cc19e7e5af1d513b6b4cf
* | | | | | | | | | Merge pull request #4307 from jbradaric/vim-7.4.870Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.870
| * | | | | | | | | | vim-patch:7.4.870Jurica Bradaric2016-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: May get into an invalid state when using getchar() in an expression mapping. Solution: Anticipate mod_mask to change. (idea by Yukihiro Nakadaira) https://github.com/vim/vim/commit/2455c4ede8d4ff6f0754977b548708eec08869eb
* | | | | | | | | | | Merge pull request #4259 from watiko/vim-7.4.881Justin M. Keyes2016-02-22
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.{879,881}
| * | | | | | | | | | | vim-patch:7.4.881watiko2016-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Test 49 fails. Solution: Add line number to check of call stack. https://github.com/vim/vim/commit/0a777ab9890ba0e8dd57f082e98fde1adab36aa0
| * | | | | | | | | | | 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
* | | | | | | | | | | | Merge pull request #4167 from lucc/test11Justin M. Keyes2016-02-21
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | tests: migrate legacy test 11
| * | | | | | | | | | | | test: Remove old files for legacy test 11.Lucas Hoffmann2016-02-15
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #4243 from lucc/test36Justin M. Keyes2016-02-21
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / / / / |/| | | | | | | | | | | | tests: Migrate legacy test 36.
| * | | | | | | | | | | | test: Remove files of old test 36.Lucas Hoffmann2016-02-15
| |/ / / / / / / / / / /
* | | | | | | | | | | | Merge pull request #4314 from justinmk/mksession_terminalJustin M. Keyes2016-02-21
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | mksession: Restore buftype=terminal windows.
| * | | | | | | | | | | | mksession: Restore buftype=terminal windows.Justin M. Keyes2016-02-21
| | |_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #4311
* | | | | | | | | | | | path.c: Fulfill the `@returns` conditionswatiko2016-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original-author: oni-link <knil.ino@gmail.com>
* | | | | | | | | | | | vim-patch:7.4.903watiko2016-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: When 'encoding' differs from the current code page, expandinig wildcards may cause illegal memory access. Solution: Allocate a longer buffer. (Ken Takata) https://github.com/vim/vim/commit/7314efd87d8c4095229bdc2867a553c36c064918
* | | | | | | | | | | | vim-patch:7.4.845watiko2016-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Compiler warning for possible loss of data. Solution: Add a type cast. (Erich Ritz) https://github.com/vim/vim/commit/5df1ed2de3fa9dcace996b9a0a4c9b3cea79cf1e
* | | | | | | | | | | | vim-patch:7.4.832watiko2016-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: $HOME in `=$HOME . '/.vimrc'` is expanded too early. Solution: Skip over `=expr` when expanding environment names. https://github.com/vim/vim/commit/be83b73ddb2ee8297037166d243f72e3423a3ce3 --- To reproduce: ```sh nvim -u NONE -c 'e `=$HOME . "/.vimrc"`' ```
* | | | | | | | | | | | vim-patch:7.4.831watiko2016-02-21
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When expanding `=expr` on the command line and encountering an error, the command is executed anyway. Solution: Bail out when an error is detected. https://github.com/vim/vim/commit/3f188935ec4db5117c4a64cc3f71219175624745