aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | shada.c: Fix HAVE_BE64TOH checkMichael Reed2016-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mentioned here: https://github.com/neovim/neovim/pull/3985#issuecomment-170663426 HAVE_BE64TOH is defined in `config/config.h', which is included by `vim.h'. Since the HAVE_BE64TOH check in `shada.c' is evaluated before `vim.h' is included, it always evaluates to false, meaning that be64toh() in shada.c is always used instead of the one in <endian.h>. Moving the HAVE_BE64TOH block to after where `vim.h' is included seems to fix the issue.
* | Merge pull request #3996 from justinmk/ctrlcJustin M. Keyes2016-01-13
|\ \ | | | | | | vim-patch:7.4.569, 7.4.573
| * | terminal: less babysitting of mapped_ctrl_cJustin M. Keyes2016-01-13
| | | | | | | | | | | | | | | process_interrupts() checks get_real_state() so we can avoid some housekeeping of mapped_ctrl_c in terminal-mode.
| * | vim-patch:7.4.569/573Shougo Matsushita2016-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:7.4.569 vim-patch:7.4.573 Helped-by: @glts https://github.com/neovim/neovim/pull/2621 Problem: Having CTRL-C interrupt or not does not check the mode of the mapping. (Ingo Karkat) Solution: Use a bitmask with the map mode. (Christian Brabandt) https://github.com/vim/vim/commit/651863c94a882a97aec7968fc87a638ff78e56ff Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat) Solution: Call get_real_state() instead of using State directly. https://github.com/vim/vim/commit/5000869712f799d9ca25c0e45dc21d332edae5f4
* | | 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
* | Stop using <stropts.h>Michael Reed2016-01-12
| | | | | | | | | | | | | | | | | | | | In Vim, at least the constant `I_PUSH` is used from <stropts.h>, but Neovim doesn't seem to use anything from said header. Besides that, POSIX.1-2008[1] marks this header as obsolescent, and there don't seem to be many platforms that even have it. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stropts.h.html#tag_13_52_11
* | os/*_defs.h: MAXNAMLEN cleanupMichael Reed2016-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | For non-Windows systems, we assume that NAME_MAX is in <limits.h>, as specified in POSIX.1-2008[1]. For Windows, which doesn't have NAME_MAX, just define it ourselves to _MAX_PATH[2]. Also, remove two (now unused) HAVE_*_H checks. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html [2]: https://msdn.microsoft.com/en-us/library/930f87yf.aspx Helped-by: Seth Jackson
* | Merge pull request #3291 from sethjackson/env-separatorJustin M. Keyes2016-01-12
|\ \ | | | | | | Windows: use ';' as env $PATH separator
| * | Windows: use ';' as env $PATH separator.Rui Abreu Ferreira2016-01-11
| | | | | | | | | | | | | | | | | | In Windows the separator character in the PATH environment is ';' instead of ':'. Add a new define ENV_SEPCHAR to be used instead of hardcoding the character literal.
* | | fileio: Replace some event checking functions with one has_eventCharles Joachim2016-01-11
|/ /
* | Merge pull request #3982 from justinmk/nohighbitJustin M. Keyes2016-01-11
|\ \ | | | | | | input: Do not set high-bit. Preserve META modifier.
| * | input: Do not set high-bit; preserve ALT modifier.Justin M. Keyes2016-01-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Background: Vim internally prefers to represent ALT/META chords as single-byte keys, by setting the high bit of the key byte. extract_modifiers() _discards_ the meta/alt modifier, but we need it for libvterm and libtermkey. Closes #2440 Closes #3727 Closes #2017 References #2277 References #2254 https://github.com/neovim/neovim/issues/2017#issuecomment-140423557 > We [not libtermkey] are setting the high bit for some reason https://github.com/neovim/neovim/issues/176#issuecomment-77834715 > libvtermkey requires the leading esc to parse alt/meta https://github.com/neovim/neovim/pull/3246#issuecomment-136328450 > A program could do better than the current logic on some terminals, by > asking for pure 8bit mode (S8C1T) and then immediately querying the > mode again. If the result comes back as an 8bit single-byte CSI, then > it can presume the mode setting was successful, and now the ESC prefix > byte won't be seen in multibyte sequences; only as an Alt- prefix or > a real Escape key. On such a terminal, it could therefore avoid > needing to use that waiting timeout.
* | | Merge pull request #3980 from ZyX-I/shell-unquoteJustin M. Keyes2016-01-10
|\ \ \ | | | | | | | | shell: Unquote &shell* options before using them
| * | | shell: Unquote &shell* options before using themZyX2016-01-11
| | | |
* | | | Windows: define MAXNAMLEN for Windows.Seth Jackson2016-01-10
| |/ / |/| | | | | | | | | | | MAXNAMLEN can be defined using _MAX_PATH from stdlib.h which will fix the BASENAMELEN definition too.
* | | portability: fix cast.Justin M. Keyes2016-01-10
|/ / | | | | | | | | PRId64 format expects int64_t. Regression from c6e481cba559d35891f20ef4ac9ca6a41bdcdbd3.
* | Merge pull request #2667 from equalsraf/tb-min-logJustin M. Keyes2016-01-10
|\ \ | | | | | | cmake: Pass MIN_LOG_LEVEL as compiler definition
| * | cmake: Pass -DMIN_LOG_LEVEL as compiler definitionRui Abreu Ferreira2016-01-10
| | | | | | | | | | | | | | | | | | | | | - Check if MIN_LOG_LEVEL value is a number 0-3, default to INFO (1) or ignore it in Release mode - When TRAVIS_CI_BUILD is ON the default is DEBUG (0) - Add local.mk.example
* | | win32: Fix syntax error in #ifndef block. #3968Rui Abreu Ferreira2016-01-10
| | | | | | | | | | | | | | | | | | The block is only compiled if the system is NOT WIN32, but the closing parenthesis for the statement opened outside the block is closed inside the block.
* | | portability: use portable format specifierJustin M. Keyes2016-01-10
| | |
* | | Improve coding stylewatiko2016-01-10
| | |
* | | tests: Migrate legacy test undolevels.watiko2016-01-10
| | |
* | | tests: Migrate legacy test assert.watiko2016-01-10
| | |
* | | vim-patch:7.4.1055watiko2016-01-10
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Running "make newtests" in src/testdir has no output. Solution: List the messages file when a test fails. (Christian Brabandt) Update the list of tests. https://github.com/vim/vim/commit/e7893a4088d6ea796bcab6195d232cb26c12c317
* | | 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
* | | vim-patch:7.4.953watiko2016-01-10
| | | | | | | | | | | | | | | | | | | | | | | | Problem: When a test script navigates to another buffer the .res file is created with the wrong name. Solution: Use the "testname" for the .res file. (Damien) https://github.com/vim/vim/commit/de0ad40cb3c1bc691a754698ed16a5b6cdb4086b
* | | vim-patch:7.4.950watiko2016-01-10
| | | | | | | | | | | | | | | | | | | | | Problem: v:errors is not initialized. Solution: Initialze it to an empty list. (Thinca) https://github.com/vim/vim/commit/4649ded2877508fe343cbcf6f7e7fd277be0aab3
* | | vim-patch:7.4.946watiko2016-01-10
| | | | | | | | | | | | | | | | | | | | | Problem: Missing changes in source file. Solution: Include changes to the eval.c file. https://github.com/vim/vim/commit/bbfbaf9741deebb9f1ed790885bd571c4cbce17a
* | | vim-patch:7.4.945watiko2016-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: New style testing is incomplete. Solution: Add the runtest script to the list of distributed files. Add the new functions to the function overview. Rename the functions to match Vim function style. Move undolevels testing into a new style test script. https://github.com/vim/vim/commit/683fa185a4b4ed7595e5942901548b8239ed5cdb
* | | vim-patch:7.4.944watiko2016-01-10
|/ / | | | | | | | | | | | | | | | | Problem: Writing tests for Vim script is hard. Solution: Add assertEqual(), assertFalse() and assertTrue() functions. Add the v:errors variable. Add the runtest script. Add a first new style test script. https://github.com/vim/vim/commit/43345546ae63710441f066648b8485fb545b3801
* | Remove 'restorescreen' optionSeth Jackson2016-01-08
| | | | | | | | | | | | | | The relevant code was never actually in Neovim, most likely due to being unifdef(1)'d out during the initial import. see `:h hidden-options'
* | Merge pull request #3943 from ZyX-I/better-fref-errorJustin M. Keyes2016-01-08
|\ \ | | | | | | eval: Use better error messages when failing to dump values
| * | eval: Do not use msgpack#string for error messagesZyX2016-01-07
| | |
| * | eval: Use better error messages when failing to dump valuesZyX2016-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Examples: let g:SR = [[]] call add(g:SR[0], g:SR) wshada " E952: Unable to dump variable g:SR: container references itself in index 0, index 0 let g:F = {'_TYPE': v:msgpack_types.map, '_VAL': [[{'abc': 1}, function("tr")]]} wshada " E951: Error while dumping variable g:F, key {'abc': 1} at index 0 from special map, key '': attempt to dump function reference " (no msgpack#string available) " E951: Error while dumping variable g:F, key {="abc": 1} at index 0 from special map, key '': attempt to dump function reference " (msgpack#string available) let g:F = {'_TYPE': v:msgpack_types.map, '_VAL': [[g:SR, function("tr")]]} wshada " E951: Error while dumping variable g:F, key [[[[{E724@0}]]]] at index 0 from special map, index 1: attempt to dump function reference call msgpackdump([g:SR]) " E952: Unable to dump msgpackdump() argument, index 0: container references itself in index 0, index 0 Not tested yet.
* | | screen.c: Remove out of date commentMichael Reed2016-01-07
| | | | | | | | | | | | This was forgotten in 10b2a0e52980aba2d1efc072368fcaf1f33e7512
* | | coverity/62611: Nesting level does not match indentationoni-link2016-01-07
| | | | | | | | | | | | | | | | | | | | | The nested line was the else-branch of an if-then-else block that dealt with cryptography, but after commit 85338fe1d5a56f82546e16c305c2048c081771e0 (Remove cryptography) removed the if-then part, the indentation of this line was not adjusted.
* | | build: Stop using __{DATE,TIME}__Justin M. Keyes2016-01-06
| | | | | | | | | | | | | | | | | | | | | Recording the compilation time modifies the source for dubious gain, and interferes with reproducible builds [1]. [1] https://reproducible-builds.org/
* | | Fix S_ISLNK definition in os_defs.h.Seth Jackson2016-01-03
|/ /
* | encoding: cleanup defaults of iskeyword, isprint and fileencodingsBjörn Linse2016-01-02
| |
* | encoding: Always use "utf-8" as default for &encodingBjörn Linse2016-01-02
| | | | | | | | Preverve the locale-depedency for fileencodings=default
* | Windows: Bring back code branch for if_cscope.Rui Abreu Ferreira2016-01-01
| | | | | | | | | | The Vim code for windows in if_cscope.c/.h was removed during the refactor, added missing code for error_closing().
* | Merge pull request #3925 from sethjackson/uv-uid-tJustin M. Keyes2016-01-01
|\ \ | | | | | | Windows: Make the os_get_uname argument portable
| * | Windows: Make the os_get_uname argument portable.Seth Jackson2016-01-01
| | | | | | | | | | | | | | | | | | Since uid_t is not defined on Windows use uv_uid_t instead. We now use uv_uid_t everywhere except one place in src/nvim/main.c which is wrapped in a #ifdef UNIX check.
* | | Merge pull request #3903 from justinmk/vim-7.4.605Justin M. Keyes2016-01-01
|\ \ \ | |/ / |/| | vim-patch:7.4.605
| * | file_pat_to_reg_pat, buflist_findpat: const paramsJustin M. Keyes2016-01-01
| | | | | | | | | | | | | | | file_pat_to_reg_pat() and buflist_findpat() do not modify the data of these parameters.
| * | vim-patch:7.4.605Justin M. Keyes2015-12-30
| | | | | | | | | | | | | | | | | | | | | | | | Problem: The # register is not writable, it cannot be restored after jumping around. Solution: Make the # register writable. (Marcin Szamotulski) https://github.com/vim/vim/commit/3b3a9498d1eab3c28c524cce115160528a9a9297
* | | Merge pull request #3911 from sethjackson/have-fsync-guardJustin M. Keyes2016-01-01
|\ \ \ | | | | | | | | os_fsync
| * | | Port fsync() to libuv.Seth Jackson2016-01-01
| |/ /
* | | normal: use oap->motion_type also to represent block motion typeBjörn Linse2016-01-01
| | | | | | | | | | | | | | | Previously oap->motion_type == MCHAR would be blockwise if oap->block_mode was set.
* | | Windows: Ignore EW_ICASE in do_path_expandRui Abreu Ferreira2015-12-31
| | | | | | | | | | | | | | | | | | | | | | | | The do_path_expand() function is still using the unix_expandpath variant from Vim. For Windows it should behave as the old dos_expandpath() function. This commit adds an ifdef to ignore EW_ICASE flag in this function, otherwise all matches fail on Windows if wildignorecase is set.