aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | Update shada.c to use libuv error constants instead of errno constantsRui Abreu Ferreira2015-11-25
| | | | | | | | | | | | | | | | | | | | | | | | From #3473, shada.c used errno constants (e.g. ENOENT) to check the return of os_open(), but in Windows the return from libuv functions is not -errno. Instead use libuv error constants (e.g UV_ENOENT) for error checks.
* | | | Return libuv error code from os_getperm()Rui Abreu Ferreira2015-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously os_getperms() returned -1 for any error condition, it now returns the libuv error code (as returned by os_stat()). This allows checking for error conditions without relying on errno (which not available in Windows). The only case where the errno value from os_getperms() was being used was in readfile() to set the new-file flag - replaced the errno check with UV_ENOENT.
* | | | Return libuv return code from os_stat()Rui Abreu Ferreira2015-11-25
| | | | | | | | | | | | | | | | | | | | | | | | Instead of returning bool from os_stat return the actual libuv return code. This function is static and used internally in nvim/os/fs.c it should not impact the rest of the API. This is a first step to change other fs functions.
* | | | Fix comments for os_* functions return valueRui Abreu Ferreira2015-11-25
| | | | | | | | | | | | | | | | | | | | | | | | In windows libuv does not return -errno, instead it uses negative error codes e.g. UV_ENOENT. This commit changes the comments in os_* functions to reflect this.
* | | | Remove unnecessary includes for errno.hRui Abreu Ferreira2015-11-25
| | | |
* | | | Remove 'antialias' remnantsMichael Reed2015-11-25
| | | | | | | | | | | | | | | | It never did anything (see `:h hidden-options`).
* | | | src: README.txt -> README.mdMichael Reed2015-11-23
| | | | | | | | | | | | | | | | | | | | The former no longer exists in this repo; see the top of src/nvim/README.md.
* | | | Merge pull request #3581 from ZyX-I/fix-shadaFelipe Morales2015-11-23
|\ \ \ \ | | | | | | | | | | Store last search direction when writing ShaDa files
| * | | | shada: Also store last search directionZyX2015-11-23
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: it looks like viminfo files do not store search direction intentionally. After reading viminfo file search direction was considered to be “forward”. Note 2: all files created on earlier Neovim version will automatically receive “forward” direction. Fixes #3580
* / / / Enable focus events in cmdline and terminal modesJoe Hermaszewski2015-11-23
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds switch cases for K_FOCUSGAINED and K_FOCUSLOST to the input handling functions in ex_getln.c and terminal.c. The handling is identical to what's found in edit.c (just calling apply_autocmds). If one enters cmdline-mode by feeding `:` and sends a focuslost event (by leaving the window for example) the text `<FocusLost>` will be inserted into the command line. There is similar behaviour in terminal mode. This patch corrects this behavior to fire the apropriate autocmd instead. Fixes #3714
* | | Update version.c to latest VimShougo Matsushita2015-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NA patches list: 652: xxd changes xxd is not included in neovim 744: if_ruby and if_perl legacy tests 750: if_perl build problem 751: compile options 756: if_perl support 757: term.c changes 759: if_lua support 761: term.c changes 762: term.c changes 763: if_lua support 766: term.c changes 770: term.c changes 772: if_mzsch support 802: duplicated test 809: revert of 802 829: GUI 837: Windows with if_sniff 840: GUI 846: CONTRIBUTING.md 850: CONTRIBUTING.md 851: Win32 console 852: Win32 console 855: GTK GUI 861: GTK GUI 862: GTK GUI 867: Windows Fix 869: Windows GUI 872: CI service 874: Windows GUI 875: README.md 876: Windows GUI 880: CI service 884: CI service 886: Windows GUI 890: if_python3 894: vimrun.exe 899: README.md 900: README.md 902: Win32 console 906: Windows problem 907: Dynamic loading 908: Windows build error 910: if_python 911: terminal 913: hangul input GUI only 917: hangulin.c changes 918: if_python 919: if_lua, if_python, if_python3 920: ruby stuff 921: Windows Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com>
* | | Implement handling of terminal focus eventsJoe Hermaszewski2015-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two new keys have been added to key_name_entry in keymap.c: `FocusGained` and `FocusLost`. Two cases have been added to the key handing switch in edit.c each applying their respective autocmds. In normal.c two functions have been added alongside nv_cursorhold doing a similar job of applying the autocmd for the appropriate key. tui/input.c has a new function `handle_focus_event` which eats either of the control sequences for focus gained or lost. This function is checked before handle_bracketed_paste and handle_forced_escape. tui.c registers neovim as able to receive these control sequences in terminfo_start and undoes that in terminfo_stop. Closes #2302
* | | ex_cmds.lua: Use ex_ni directlyMichael Reed2015-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As can be seen in [1], the ifdefs are leftovers from Vim, where tons of features are optional. This is not the case in Nvim, so the macros are of little use. Besides, ex_ni is already used in a bunch of places, just not consistently. The ex_language macro was left untouched as the inclusion of ``:language'' actually is determined at compile time, unlike the other commands which _always_ print "this command is not available in this version". [1]: https://github.com/vim/vim/blob/master/src/ex_docmd.c#L18-L497 Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
* | | Merge pull request #3339 from war1025/dev/clean_build_stl_str_hlJustin M. Keyes2015-11-15
|\ \ \ | | | | | | | | Clean up buffer.c build_stl_str_hl
| * | | Cleanup from reviewWayne Rowcliffe2015-11-11
| | | |
| * | | Switch comments to match style guideWayne Rowcliffe2015-11-11
| | | |
| * | | Updates from reviewWayne Rowcliffe2015-11-11
| | | |
| * | | Fix shadowed variable in build_stl_str_hlWayne Rowcliffe2015-11-11
| | | |
| * | | Add documentation about what TABPAGENR and TABCLOSENR doWayne Rowcliffe2015-11-11
| | | |
| * | | Fix lintWayne Rowcliffe2015-11-11
| | | |
| * | | Add out_end_p to mark last valid character in statusline bufferWayne Rowcliffe2015-11-11
| | | |
| * | | Rename build_stl_str_hl input and output buffer pointersWayne Rowcliffe2015-11-11
| | | |
| * | | Add comments to build_stl_str_hlWayne Rowcliffe2015-11-11
| | | |
| * | | Clean up buffer.c build_stl_str_hl variable declarationsWayne Rowcliffe2015-11-11
| | | |
* | | | Merge pull request #3672 from Pyrohh/macro-cleanupMichael Reed2015-11-15
|\ \ \ \ | | | | | | | | | | [RFC] Remove unused TERMINAL_OPTIONS_INIT() macro
| * | | | Remove unused TERMINAL_OPTIONS_INIT() macroMichael Reed2015-11-14
| | | | | | | | | | | | | | | | | | | | It's not used after aa9cb48
* | | | | Add TermClose eventMarco Hinz2015-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A terminal buffer now exits with: [Process exited <return value>] You can hook into it. E.g. :au TermClose * call feedkeys('<cr>') Closes #2293.
* | | | | TermEnter -> TermOpenMarco Hinz2015-11-15
|/ / / /
* | | | memory.c: Prevent garbage collection when running out of memory.oni-link2015-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running out of memory, garbage collection would free lists and dictionaries that are not yet referenced. This would later on lead to a use-after-free for these objects. Releated to vim-patch:7.4.916, so also updating version.c. Patch by @ZyX-I
* | | | normal.c: No garbage collection while handling an event in normal modeoni-link2015-11-13
|/ / / | | | | | | | | | | | | | | | Patch by @tarruda Fixes #3588
* | | Merge pull request #3651 from mhinz/remove-nvimrc-refsJustin M. Keyes2015-11-11
|\ \ \ | | | | | | | | Remove all invalid nvimrc references
| * | | Remove all invalid nvimrc and ngvimrc referencesMarco Hinz2015-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "vimrc" refers to all files that are used to configure Neovim. The main configuration file is init.vim nowadays. All nvimrc references that are left refer to a local ".nvimrc" which is read if 'exrc' is set. ".ngvimrc" references were completely wiped. Closes #3552.
* | | | vim-patch:7.4.791 #3078Marco Hinz2015-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The buffer list can be very long. Solution: Add an argument to ":ls" to specify the type of buffer to list. (Marcin Szamotulski) https://github.com/vim/vim/commit/d51cb706a4e3ae99555bc214a64c83603c701139
* | | | Be more explicit about the lack of X11 integrationMichael Reed2015-11-10
|/ / / | | | | | | | | | | | | I don't want anyone getting the idea that the `-X` flag they might have used has anything to do with why the `+` is working for them
* | | vim-patch:7.4.651 #3644Shougo Matsushita2015-11-10
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Can't match "%>80v" properly for multi-byte characters. Solution: Multiply the character number by the maximum number of bytes in a character. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/4f36dc3bf7118a3fa5ccdae1a37963860dc71e6c
* | | Add file selection prompt on ":oldfiles!"Marco Hinz2015-11-10
| | | | | | | | | | | | | | | | | | | | | | | | :browse was removed for good, but some people miss ":browse oldfiles". The same functionality is now provided by ":oldfiles!". Helped-by: @Pyrohh
* | | Add ":profile stop"Marco Hinz2015-11-10
| | | | | | | | | | | | This writes the logfile and stops profiling.
* | | Add ":profile dump"Marco Hinz2015-11-10
| | | | | | | | | | | | | | | Currently the logfile (":profile start {logfile}") only gets written when Vim exits. This new command allows to dump the log immediately without exiting.
* | | Remove unused constantsMarco Hinz2015-11-10
| | |
* | | eval: Implement dictionary change notificationsThiago de Arruda2015-11-09
| | |
* | | eval: Extract `find_var_ht_dict` from `find_var_ht`Thiago de Arruda2015-11-09
| | |
* | | eval: Extract `find_ufunc` from `get_dict_callback`Thiago de Arruda2015-11-09
| | |
* | | vim-patch:7.4.686 #3629Johan Klokkhammer Helsing2015-11-08
| | | | | | | | | | | | | | | | | | | | | | | | Problem: "zr" and "zm" do not take a count. Solution: Implement the count, restrict the fold level to the maximum nesting depth. (Marcin Szamotulski) https://github.com/vim/vim/commit/7d2757a47204d00cd47e3db94f1bd248c499d4e3
* | | Remove :open commandMichael Reed2015-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the documentation itself: :[range]o[pen] Works like |:visual|: end Ex mode. {Vi: start editing in open mode} ... Vim does not support open mode, since it's not really useful. For those situations where ":open" would start open mode Vim will leave Ex mode, which allows executing the same commands, but updates the whole screen instead of only one line. Part of the reason behind this is to make removing vi_diff.txt easier, although it's also because :open is not too useful. Helped-by: @fdinoff Helped-by: @dsummersl Helped-by: @mhinz Helped-by: @justinmk
* | | IWYU: remove unused "version.h"Justin M. Keyes2015-11-05
| | |
* | | undo: Remove incorrect NONNULL_ALL attributeZyX2015-11-05
| | | | | | | | | Fixes #3605
* | | build: Use `git describe` for version strings.Justin M. Keyes2015-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building in a git repo: - If HEAD corresponds to an annotated tag, (i.e. git_get_exact_tag() returns truthy) the current build is considered a "release" build: NVIM_VERSION_MEDIUM is directly assigned the tagged version name, and NVIM_VERSION_* defines are ignored. - If HEAD is not a tagged release, then NVIM_VERSION_MEDIUM is directly assigned the result of `git describe`. If git (or the repo) is not available: - The NVIM_VERSION_* defines are used to define NVIM_VERSION_MEDIUM. Sample outputs for `nvim --version` and `nvim +version`: Building with git @ non-tagged commit e66df14: NVIM v0.1.0-1-ge66df14 (compiled Nov 1 2015 19:10:30) Commit: e66df148f9401be17adab324a6e41d927aae20b3 Building with git @ v0.1.1 tag: NVIM v0.1.1 (compiled Nov 1 2015 19:03:52) [no "Commit:" line] Building this commit _not_ in a git repo: NVIM 0.1.0-dev (compiled Nov 1 2015 19:16:11) [no "Commit:" line]
* | | Remove useless FEAT_BROWSE ifdefMichael Reed2015-11-01
| | | | | | | | | | | | | | | The only thing this affected was the return value of has('browsefilter').
* | | version: Prepare for releases.Florian Walch2015-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Hide commit information from --version if we can't find any (e.g. when building from tarball). To define a release in CMake, set NVIM_VERSION_PRERELEASE to "". This will modify --version output to: * Show annotated Git tag instead of commit hash (NVIM_VERSION_COMMIT). * Hide commit date (NVIM_VERSION_BUILD).
* | | CMake: Disable logging for release build types.Florian Walch2015-11-01
| | | | | | | | | | | | | | | | | | These are: Release, MinSizeRel, and RelWithDebInfo. Closes #2913.