aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.2.1472: ":argdel" does not work like ":.argdel" as documentedJan Edmund Lazo2020-08-17
| | | | | | | | Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey Demin) Solution: Make ":argdel" work like ":.argdel". (closes vim/vim#6727) Also fix giving the error "0 more files to edit". https://github.com/vim/vim/commit/7b22117c4ecf383b6f35acef041773a83ec28220
* ex_docmd: replace #define with enumJan Edmund Lazo2020-08-15
| | | | | | | | | | enum value can be inferred from previous member. Vim was doing this manually via relative #define. It's not needed but it is confusing for me to update an array index after the array value and to configure the array index such that it is dependent on other array indices. One missing #define and everything below breaks.
* vim-patch:8.2.1347: cannot easily get the script IDJan Edmund Lazo2020-08-14
| | | | | | Problem: Cannot easily get the script ID. Solution: Support expand('<SID>'). https://github.com/vim/vim/commit/909443028b57d7514ce3c71f00e9d808f2126b4f
* vim-patch:8.1.0573: cannot redefine user command without ! in same scriptJan Edmund Lazo2020-08-14
| | | | | | | Problem: Cannot redefine user command without ! in same script Solution: Allow redefining user command without ! in same script, like with functions. https://github.com/vim/vim/commit/55d46913084745a48749d7ac4f48930852e1d87e
* vim-patch:8.2.0648: semicolon search does not work in first lineJan Edmund Lazo2020-05-03
| | | | | | | Problem: Semicolon search does not work in first line. Solution: Allow the cursor to be in line zero. (Christian Brabandt, closes vim/vim#5996) https://github.com/vim/vim/commit/0e71704b77a9891ccae9f5a9c7429e933078f232
* Merge pull request #12018 from janlazo/vim-8.0.1123Matthieu Coudron2020-04-27
|\ | | | | [RFC]vim-patch:8.0.{1123,1125,1138,1139,1142,1292,1334,1375},8.1.1264
| * vim-patch:8.0.1139: using window toolbar changes stateJan Edmund Lazo2020-04-26
| | | | | | | | | | | | Problem: Using window toolbar changes state. Solution: Always execute window toolbar actions in Normal mode. https://github.com/vim/vim/commit/a21a6a9ade7bec3a07992d4d900d4ce82eeb8a29
* | Merge #11851 'eval.c: factor out eval/userfunc.c'Justin M. Keyes2020-04-26
|\ \ | |/ |/| | | vim-patch:7.4.2058
| * rename: user_funcs -> userfuncJakub Łuczyński2020-02-13
| | | | | | | | Lets stick with vim for now
| * fix: includesJakub Łuczyński2020-02-13
| |
* | folds: decrease reliance on global "curwin" (#12132)Matthieu Coudron2020-04-16
| | | | | | | | | | | | | | | | Pass the window in which to create/delete folds instead of using the global "curwin" (current window). Preliminary work for a fold API. TODO: I kept changed_lines prototype unchanged. This should be updated when a fold API sees the light.
* | vim-patch:8.2.0560: compiler warning in tiny buildJan Edmund Lazo2020-04-12
| | | | | | | | | | | | Problem: Compiler warning in tiny build. Solution: Move declaration inside #ifdef. (Dominique Pelle, closes vim/vim#5915) https://github.com/vim/vim/commit/2196bce56fcd56b0eaece50c079bac99f5bc31af
* | vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local ↵Will Eccles2020-03-17
| | | | | | | | | | | | | | | | | | | | (#11854) Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff' Author: Bram Moolenar https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7
* | vim-patch:8.1.0881: can execute shell commands in rvim through interfacesJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others. https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075
* | vim-patch:8.1.0043: ++bad argument of :edit does not work properlyJan Edmund Lazo2020-02-16
| | | | | | | | | | | | | | | | Problem: ++bad argument of :edit does not work properly. Solution: Return FAIL from get_bad_opt() only when there is no valid argument. (Dominique Pelle, Christian Brabandt, closes vim/vim#2966, closes vim/vim#2947) https://github.com/vim/vim/commit/7580849df9d6c7c515f5ed784019336d8a8ec0f0
* | vim-patch:8.0.1660: the terminal API "drop" command doesn't support optionsJan Edmund Lazo2020-02-16
| | | | | | | | | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options. https://github.com/vim/vim/commit/333b80acf3a44e462456e6d5730e47ffa449c83d
* | vim-patch:8.1.1201: output of :command is hard to readJan Edmund Lazo2020-02-16
| | | | | | | | | | | | | | Problem: Output of :command is hard to read. Solution: Make some columns wider, some narrower. Truncate the command when listing all. https://github.com/vim/vim/commit/725310d89e1ba268bf410472b7de054c6c260161
* | vim-patch:8.1.2187: error for bad regexp even though regexp is not usedJan Edmund Lazo2020-02-16
|/ | | | | | | Problem: Error for bad regexp even though regexp is not used when writing a file. (Arseny Nasokin) Solution: Ignore regexp errors. (closes vim/vim#5059) https://github.com/vim/vim/commit/b40c2576d4e0e2dd2c580414c45947d88556d76d
* refactor: move session functions to ex_session.cJustin M. Keyes2020-01-28
|
* mksession: always unix slashes "/" for filepathsJustin M. Keyes2020-01-26
|
* cleanup/ex_docmd.c: remove most put_eol() callsJustin M. Keyes2020-01-26
|
* lintJustin M. Keyes2020-01-26
|
* cleanup/ex_docmd.c: remove most put_line() callsJustin M. Keyes2020-01-26
| | | | | - prefer fprintf() instead of put_line() - PUTLINE_FAIL macro to avoid some boilerplate
* mksession: always write LF "\n" line-endingsJustin M. Keyes2020-01-26
| | | | | | | | - remove `MKSESSION_NL`, `mksession_nl` - deprecate the "unix" flag of 'sessionoptions' There is no reason to choose CRLF or LF for session files. Instead just always write LF.
* mksession: avoid ":file …" when restoring non-terminal bufsJustin M. Keyes2020-01-26
|
* mksession: simplify generated commandsJustin M. Keyes2020-01-26
| | | | | | | Doing ":file …" immediately after is enough to fixup the :terminal buffer name. ref #5250
* mksession: restore same :term buf in split windowsAlexandre Dubray2020-01-26
| | | | | | | | | | | | | | Problem: When session-restore creates a terminal buffer with command like `:edit term://.//16450:/bin/bash`, the buffer gets a different name (depends on PID). Thus the later call to `bufexists('term://.//16450:/bin/bash)` will return false. Solution: Force the buffer name with :file. This as least ensures the same buffer will show in multiple windows correctly, as expected when saving the session. But it still has problems: 1. the PID in the buffer name is bogus 2. redundant :terminal buffers still hang around fix #5250
* tabpage: "tabnext #" switches to previous tab #11734butwerenotthereyet2020-01-20
|
* tabpage: :tabs indicates previous tabpage's curwinWe're Yet2020-01-19
|
* Remove (void) hacks, Mark unused attrsJan Edmund Lazo2020-01-08
|
* ex_docmd: fix pvs/v781Jan Edmund Lazo2019-12-26
|
* vim-patch:8.2.0013: not using a typedef for condstackJan Edmund Lazo2019-12-16
| | | | | | Problem: Not using a typedef for condstack. Solution: Add a typedef. https://github.com/vim/vim/commit/ddef129160ff0676e5da482071fb2fdc2988ac34
* API: deprecate nvim_command_outputJustin M. Keyes2019-12-02
|
* API: rename nvim_source => nvim_execJustin M. Keyes2019-12-01
| | | | | - Eliminate nvim_source_output(): add boolean `output` param to nvim_exec() instead.
* vim-patch:8.1.2349: :lockvar and :unlockvar cannot be followed by "| endif"Jan Edmund Lazo2019-11-26
| | | | | | Problem: :lockvar and :unlockvar cannot be followed by "| endif". Solution: Check for following commands. (closes vim/vim#5269) https://github.com/vim/vim/commit/cc4423ae13d78367a3d0b5756783523d3b3a1d31
* vim-patch:8.1.2348: :const cannot be followed by "| endif"Jan Edmund Lazo2019-11-26
| | | | | | | Problem: :const cannot be followed by "| endif". Solution: Check following command for :const. (closes vim/vim#5269) Also fix completion after :const. https://github.com/vim/vim/commit/8f76e6b12b958f2779444a92234bbaf3f49eeb99
* vim-patch:8.1.1732: completion in cmdwin does not work for buffer-local commandsJan Edmund Lazo2019-11-24
| | | | | | Problem: Completion in cmdwin does not work for buffer-local commands. Solution: Use the right buffer. (closes vim/vim#4711) https://github.com/vim/vim/commit/f03e328348f87e1fe8ce4aad2a6a4237b9f78ce3
* Merge #11340 'Factor out parse_one_cmd()'Justin M. Keyes2019-11-17
|\ | | | | | | | | This will allow us to reuse the parsing logic elsewhere, namely for 'inccommand' logic, so we don't need to duplicate it for changes such as the repeated colon fix in #11319.
| * Factor out parse_one_cmd()Rob Pilling2019-11-13
| | | | | | | | | | This will allow us to reuse the parsing logic elsewhere, namely for inccommand logic.
| * vim-patch:8.1.0266: parsing Ex address range is not a separate functionJan Edmund Lazo2019-11-13
| | | | | | | | | | | | Problem: Parsing Ex address range is not a separate function. Solution: Refactor do_one_cmd() to separate address parsing. https://github.com/vim/vim/commit/ee8415bc5998792fab6f4dcf289d027856e05b89
* | vim-patch:8.1.0992: :normal resets reg_executing() result #11398Jan Edmund Lazo2019-11-16
|/ | | | | | Problem: A :normal command while executing a register resets the reg_executing() result. Solution: Save and restore reg_executing. (closes vim/vim#4066) https://github.com/vim/vim/commit/cce713ddcc0c9ab29926c28e287cbb587a959b08
* vim-patch:8.1.0324: off-by-one error in cmdidx checkJan Edmund Lazo2019-11-09
| | | | | | | | Problem: Off-by-one error in cmdidx check. (Coverity) Solution: Use ">=" instead of ">". https://github.com/vim/vim/commit/74c8be2c6803eda3a57991b8867c5c65259b73d6 Fix pvs/v557.
* Document skip_colon_white()Rob Pilling2019-10-31
|
* Allow multiple leading colons before and after modifiers for 'inccommand'Rob Pilling2019-10-31
|
* Factor out skip_colon_white()Rob Pilling2019-10-31
|
* vim-patch:8.1.2173: searchit() has too many argumentsJaehwang Jerry Jung2019-10-27
| | | | | | Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument. https://github.com/vim/vim/commit/92ea26b925a0835badb0af2d5887238a4198cabb
* vim-patch:8.1.0288: quickfix code uses cmdidx too oftenJan Edmund Lazo2019-10-23
| | | | | | Problem: Quickfix code uses cmdidx too often. Solution: Add is_loclist_cmd(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/396659592fe039decc8c088694912067fe32a681
* vim-patch:8.1.2197: ExitPre autocommand may cause accessing freed memoryJan Edmund Lazo2019-10-21
| | | | | | Problem: ExitPre autocommand may cause accessing freed memory. Solution: Check the window pointer is still valid. (closes vim/vim#5093) https://github.com/vim/vim/commit/34ba06b6e6f94bb46062e6c85dbfdcbb0d255ada
* vim-patch:8.1.1588: in :let-heredoc line continuation is recognizedJurica Bradaric2019-10-07
| | | | | | Problem: In :let-heredoc line continuation is recognized. Solution: Do not consume line continuation. (Ozaki Kiichi, closes vim/vim#4580) https://github.com/vim/vim/commit/e96a2498f9a2d3e93ac07431f6d4afd77f30afdf
* Merge #11157 from janlazo/vim-8.1.2113Justin M. Keyes2019-10-06
|\ | | | | vim-patch:8.1.{59, 586, 2113}