aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
Commit message (Collapse)AuthorAge
...
* Merge #3745 from cacplate/ops_WconversionJustin M. Keyes2016-06-13
|\ | | | | Enable -Wconversion in ops.c
| * ops.c: enable -Wconversion warningCharles Joachim2016-05-30
| |
* | Fix style according to linterTJ DeVries2016-06-09
| |
* | vim-patch:7.4.1151Michael Ennen2016-06-07
| | | | | | | | | | | | | | Problem: Missing change to eval.c Solution: Also change feedkeys(). https://github.com/vim/vim/commit/5f8a14b9dea094b8bbab94cfc1e8da8e633fbc01
* | vim-patch:7.4.1150Michael Ennen2016-06-04
| | | | | | | | | | | | | | | | | | Problem: 'langmap' applies to the first character typed in Select mode. (David Watson) Solution: Check for SELECTMODE. (Christian Brabandt, closes #572) Add the 'x' flag to feedkeys(). https://github.com/vim/vim/commit/25281634cda03ce302aaf9f906a9520b5f81f91e
* | 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.
* | *: 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: 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()
* Merge pull request #4743 from jamessan/vim-7.4.1037Justin M. Keyes2016-05-15
|\ | | | | vim-patch:7.4.1037,fa73534
| * Linting fixups for vim-patch:7.4.1037James McCoy2016-05-14
| |
| * vim-patch:7.4.1037James McCoy2016-05-14
| | | | | | | | | | | | | | | | | | Problem: Using "q!" when there is a modified hidden buffer does not unload the current buffer, resulting in the need to abandon it again. Solution: When using "q!" unload the current buffer when needed. (Yasuhiro Matsumoto, Hirohito Higashi) https://github.com/vim/vim/commit/027387f70c671f62e3e08e0bdd09ec05b0232735
* | ex_terminal(): fix double-freeJustin M. Keyes2016-05-15
|/ | | | Closes #4554
* *: 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
|
* Merge pull request #4625 from brcolow/vim-7.4.1075Justin M. Keyes2016-04-27
|\ | | | | vim-patch: 7.4.1075
| * vim-patch: 7.4.1075Michael Ennen2016-04-26
| | | | | | | | | | | | | | Problem: Crash when using an invalid command. Solution: Fix generating the error message. (Dominique Pelle) https://github.com/vim/vim/commit/05fe017c1ac0503b706dad695097572fde01ab0b
* | Merge pull request #4655 from brcolow/vim-7.4.1035Justin M. Keyes2016-04-27
|\ \ | |/ |/| vim-patch: 7.4.1035
| * vim-patch: 7.4.1035Michael Ennen2016-04-26
| | | | | | | | | | | | | | | | Problem: An Ex range gets adjusted for folded lines even when the range is not using line numbers. Solution: Only adjust line numbers for folding. (Christian Brabandt) https://github.com/vim/vim/commit/a3306958dcb9aadff1e1e8521d908d86b10ac99a
* | 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
| * keymap: Make replace_termcodes and friends accept length and cpo_flagsZyX2016-04-18
| | | | | | | | | | | | | | Reasons: - One does not have to do `s[len] = NUL` to work with these functions if they do not need to replace the whole string: thus `s` may be const. - One does not have to save/restore p_cpo to work with them.
* | Implement tab-local working directory feature.HiPhish2016-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New ex commands: 'tcd', 'tchdir' Changed Vimscript functions: 'haslocaldir', 'getcwd' The ex-commands ':tcd' and ':tchdir' are the tab-local equivalents of ':lcd' and ':lchdir'. There are no new Vimscript functions introduced, instead the functions 'haslocaldir' and 'getcwd' take in optional arguments. See the documentation for details Since there is now different levels of local directory a simple boolean at source level is no longer sufficient; a new enumeration type is used for the scope-level from now on. The documentation has been accommodated for these new commands and functional tests have been written to test the feature.
* | *: Make set_vim_var_\* functions have proper argument typesZyX2016-04-18
|/
* Trigger TabNew before TabEnterMarco Hinz2016-03-01
|
* bufhl: new mechanism for plugins to add highlights to a bufferBjörn Linse2016-02-23
|
* 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
* / mksession: Restore buftype=terminal windows.Justin M. Keyes2016-02-21
|/ | | | Closes #4311
* Merge pull request #4220 from watiko/vim-7.4.792Justin M. Keyes2016-02-15
|\ | | | | vim-patch:7.4.792
| * 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
* | startup: Avoid VimL global. Introduce TriState enum.Justin M. Keyes2016-02-14
| | | | | | | | | | | | | | - `syntax_on` is documented. Rather than introduce a new undocumented VimL global `g:syntax_off`, use a module-local flag. - Rename "maybe" functions to follow style guidelines (use standard module prefix)
* | startup: respect earlier :filetype and :syntax.Felipe Morales2016-02-14
| | | | | | | | | | If user invokes :filetype or :syntax before startup defaults are applied, don't clobber their choices.
* | ex_docmd: rename force_enable_filetype().Justin M. Keyes2016-02-14
| | | | | | | | It is no longer forcing anything.
* | syntax: don't override user settingsFelipe Morales2016-02-14
| |
* | defaults: Enable syntax and filetype plugins.Felipe Morales2016-02-14
|/
* vim-patch:7.4.737watiko2016-02-10
| | | | | | | | | | | | | Problem: On MS-Windows vimgrep over arglist doesn't work (Issue 361) Solution: Only escape backslashes in ## expansion when it is not used as the path separator. (James McCoy) https://github.com/vim/vim/commit/6e8d3b0d41bcef7ebe0ba2e887eb25781e1437fe --- Fix a lint error for the closing parenthesis. NOLINT does not help to do this.
* 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.811Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | Problem: Invalid memory access when using "exe 'sc'". Solution: Avoid going over the end of the string. (Dominique Pelle) https://github.com/vim/vim/commit/204b93f95831454e6924acf30b16fd4bdfda0d14
| * vim-patch:7.4.800Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | Problem: Using freed memory when triggering CmdUndefined autocommands. Solution: Set pointer to NULL. (Dominique Pelle) https://github.com/vim/vim/commit/829aef1eb48b17445b1f0a801948c1b826f507f8
* | vim-patch:7.4.693 #4172watiko2016-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Session file is not correct when there are multiple tab pages. Solution: Reset the current window number for each tab page. (Jacob Niehus) https://github.com/vim/vim/commit/695baeefe17adcd95f91d089efee87bd96fc98db --- see: "[patch] wincmd error during session restore" https://groups.google.com/d/msg/vim_dev/NykQ0UuOjXc/_MZi4sv9vp0J What I did for testing: ```sh mkdir /tmp/test_session cd $_ function test_session() { $1 -u NONE -i NONE -N ~/.vimrc \ -c 'wincmd s' \ -c 'wincmd v' \ -c 'wincmd T' \ -c 'normal 1gt' \ -c '2wincmd w' \ -c 'mks! test.vis' \ -c 'qa' $1 -u NONE -i NONE -N -S test.vis } test_session vim test_session nvim test_session /path/to/your/neovim/repository/build/bin/nvim ```
* | vim-patch:7.4.740Jurica Bradaric2016-02-01
|/ | | | | | | Problem: ":1quit" works like ":.quit". (Bohr Shaw) Solution: Don't exit Vim when a range is specified. (Christian Brabandt) https://github.com/vim/vim/commit/c7a0d32c834ff321491d8fd7bc68bf6cabd11e44
* vim-patch:7.4.709Jurica Bradaric2016-01-28
| | | | | | | | Problem: ":tabmove" does not work as documented. Solution: Make it work consistently. Update documentation and add tests. (Hirohito Higashi) https://github.com/vim/vim/commit/40ce3a4e1f50badb75ca812e26557a9bc5fde8c6
* misc: UNIX => Unix #4022Seth Jackson2016-01-16
| | | | | | | | | | Although UNIX is a registered trademark of The Open Group, it doesn't really matter whether we refer to these systems as UNIX, Unix, or Unix-like. So, for consistency, refer to them collectively as Unix. Related: http://www.greens.org/about/unix.html http://www.unixica.com/html/unixunix.html
* fileio: Replace some event checking functions with one has_eventCharles Joachim2016-01-11
|
* vim-patch:7.4.858Florian Walch2015-12-24
| | | | | | | | Problem: It's a bit clumsy to execute a command on a list of matches. Solution: Add the ":ldo", ":lfdo", ":cdo" and ":cfdo" commands. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/aa23b379421aa214e6543b06c974594a25799b09
* vim-patch:7.4.617Shougo Matsushita2015-11-29
| | | | | | | Problem: Wrong ":argdo" range does not cause an error. Solution: Reset "cmd" to NULL. (Marcin Szamotulski, Ingo Karkat) https://github.com/vim/vim/commit/c0a37b9db38e722b9e5ac3ac8b4c4af86bdf018c