aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
Commit message (Collapse)AuthorAge
* vim-patch:8.1.2380: using old C style commentsJan Edmund Lazo2021-03-29
| | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/306139005c31ea7e6f892dd119beba3c94dcb982
* vim-patch:8.2.0925: getcompletion() does not return command line argumentsJan Edmund Lazo2021-02-14
| | | | | | Problem: Getcompletion() does not return command line arguments. Solution: Add the "cmdline" option. (Shougo, closes vim/vim#1140) https://github.com/vim/vim/commit/1f1fd44ef796dd909ff5f3e5288b3fd79294dc71
* vim-patch:8.2.0054: :diffget and :diffput don't have good completionJan Edmund Lazo2021-02-13
| | | | | | Problem: :diffget and :diffput don't have good completion. Solution: Add proper completion. (Dominique Pelle, closes vim/vim#5409) https://github.com/vim/vim/commit/ae7dba896975051a3f0b7123faa08dac5635972d
* vim-patch:8.2.2058: using mkview/loadview changes the jumplistSean Dewar2021-02-11
| | | | | | | | | | | Problem: Using mkview/loadview changes the jumplist. Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the jumplist. (closes vim/vim#7371) https://github.com/vim/vim/commit/3482be6a33c3a00fe1e8e604310ad3034f593045 Definition for BufWinEnter autocmd in Test_mkview_loadview_jumplist() was moved down a few lines until after the views are written, as in Nvim, :loadview throws if the view file can't be opened.
* vim-patch:8.2.1967: the session file does not restore the alternate fileSean Dewar2021-02-11
| | | | | | | | | | | Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes vim/vim#7269, closes vim/vim#6714) https://github.com/vim/vim/commit/59d8e56e048eb5d384649284fb35363931fc3697 Include minimal test_buffer.vim from patch 8.2.0243 for Test_balt(). Add entry for :balt to runtime/doc/index.txt from vim/vim#7819.
* menu: use char* for set_context_in_menu_cmd() paramJan Edmund Lazo2021-02-07
| | | | | | All calls to set_context_in_menu_cmd() cast "cmd" arg to char_u. get_menu_cmd_nodes() doesn't require "cmd" to be unsigned char. Use "char" type for "cmd" function param to reduce type casts.
* option: use char* for set_string_option_direct()Jan Edmund Lazo2021-02-07
| | | | | | | "name" param was cast to (const char *). All calls to set_string_option_direct() cast 1st arg from (char *) to (char_u *). Remove these useless casts.
* vim-patch:8.2.2469: confusing error if :winsize has a wrong argument (#13889)Jan Edmund Lazo2021-02-06
| | | | | | | Problem: Confusing error if :winsize has a wrong argument. Solution: Quote the argument in the error. (closes vim/vim#2523) https://github.com/vim/vim/commit/f5a5116a96b1877c3f44e7bae288fd6603151eb1 Cherry-pick Test_winsize_cmd() from patch v8.2.0243.
* Use abort() instead of assert(false) for things that should never happenJames McCoy2021-01-31
| | | | | | | | assert() is compiled out for release builds, but we don't want to continue running in these impossible situations. This also resolves the "implicit fallthrough" warnings for the asserts in switch cases.
* vim-patch:8.2.2412: not all fields in "cstack" are initializedJan Edmund Lazo2021-01-28
| | | | | | | Problem: Not all fields in "cstack" are initialized which might cause a crash. Solution: Use CLEAR_FIELD(). https://github.com/vim/vim/commit/ce0370d9e67df80c62ff033aa8ca2dbe86841de9
* lintchentau2021-01-26
|
* Don't show entire context when completingTony Chen2021-01-26
|
* feat: add completion to ':lua'TJ DeVries2021-01-26
|
* vim-patch:8.1.1822: confusing error message when range is not allowedJan Edmund Lazo2021-01-02
| | | | | | | Problem: Confusing error message when range is not allowed. Solution: With ADDR_NONE give e_norange. Change e_invaddr to e_invrange for consistency. https://github.com/vim/vim/commit/0acae7acc40b9f12bff88d5e1dae494a761fec07
* vim-patch:8.1.1667: flags for Ex commands may clash with other symbolsJan Edmund Lazo2021-01-02
| | | | | | | | | | | | | | | | | Problem: Flags for Ex commands may clash with other symbols. Solution: Prepend with EX_. https://github.com/vim/vim/commit/8071cb2c646c9d38dcd4e3ccd377dce07705f031 N/A patches for version.c: vim-patch:8.1.1672: "make cmdidxs" doesn't work Problem: "make cmdidxs" doesn't work. Solution: Update macro names. (Naruhiko Nishino, closes vim/vim#4660) https://github.com/vim/vim/commit/d94ac0caca12c6ceb54b07fc932edba84a5f60f2 Error message for src/nvim/ex_cmds.lua which omits the "EX_" prefix for the flags.
* vim-patch:8.1.2411: function argument copied unnecessarilyJan Edmund Lazo2021-01-01
| | | | | | Problem: Function argument copied unnecessarily. Solution: Use the argument directly. https://github.com/vim/vim/commit/1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2
* vim-patch:8.1.1261: no error for quickfix commands with negative rangeerw72021-01-01
| | | | | | | | | | | | | | | Problem: No error for quickfix commands with negative range. Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make assert_fails() show the command if the error doesn't match. https://github.com/vim/vim/commit/25190db225d63e185e77e043e694ef455b3cf304 N/A patches for version.c: vim-patch:8.2.0113: "make cmdidxs" fails Problem: "make cmdidxs" fails. Solution: Allow address for ":cquit". Add --not-a-term to avoid a delay. https://github.com/vim/vim/commit/9b24dfcb9f676e7f7a09a9062f0d05b2104a87eb
* vim-patch:8.1.1241: Ex command info contains confusing informationJan Edmund Lazo2021-01-01
| | | | | | | | | | | | | | | | | | | | | | Problem: Ex command info contains confusing information. Solution: When using the NOTADR flag use ADDR_OTHER for the address type. Cleanup code using NOTADR. Check for errors in create_cmdidxs.vim. Adjust Makefile to see the errors. https://github.com/vim/vim/commit/b731689e85b4153af7edc8f0a6b9f99d36d8b011 Use Lua's "assert()" to make an invalid command definition a compilation error. Misc changes: Remove 'RESTRICT' flag. Neovim does not support "restricted" mode since commit 7777532cebcfa9abc5ab2c7beae77f386feed3ca. TODO: Do not generate files before Lua assertions so that CMake always runs the generator script if the previous build has an invalid command definition.
* Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode ↵Jan Edmund Lazo2020-12-31
| | | | | | | | with mapped Esc" This reverts commit 44bb7147e40743d9a70ee3a2663a7a7dacec7b13. Avoid regression mentioned in https://github.com/neovim/neovim/commit/c64cce906e7ed828d331e1786c985ff7aa734546#commitcomment-45554271
* vim-patch:8.1.0149: session is wrong with multiple tabs when :lcd was usedJan Edmund Lazo2020-12-29
| | | | | | | | Problem: The generated sessions file does not restore tabs properly if :lcd was used in one of them. Solution: Create the tab pages before setting the directory. (Yee Cheng Chin, closes vim/vim#3152) https://github.com/vim/vim/commit/26d4b896a789e65df7ee0cf3e25056eabc523fda
* vim-patch:8.2.0928: many type casts are used for vim_strnsave()Jan Edmund Lazo2020-12-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes vim/vim#5633) Remove some type casts. https://github.com/vim/vim/commit/df44a27b53586fccfc6a3aedc89061fdd9a515ff N/A patches for version.c: vim-patch:8.2.0315: build failure on HP-UX system Problem: Build failure on HP-UX system. Solution: Use LONG_LONG_MIN instead of LLONG_MIN. Add type casts for switch statement. (John Marriott) https://github.com/vim/vim/commit/c593bec4120f122e8a9129ec461968f1bd214435 vim-patch:8.2.1052: build failure with older compilers Problem: Build failure with older compilers. Solution: Move declaration to start of block. https://github.com/vim/vim/commit/7acde51832f383f9a6d2e740cd0420b433ea841a vim-patch:8.2.2229: build failure without the +eval feature Problem: build failure without the +eval feature. Solution: Add #ifdef. https://github.com/vim/vim/commit/39cb2dab18e85fc60f116a4543e433616872b690 vim-patch:8.2.2232: compiler error for falling through into next case Problem: Compiler error for falling through into next case. Solution: Move FALLTHROUGH below the #endif https://github.com/vim/vim/commit/9618a25b9c054f0ee4e267d2db96b6e7c113ed7a
* vim-patch:8.2.1121: command completion not working after ++argJan Edmund Lazo2020-12-26
| | | | | | Problem: Command completion not working after ++arg. Solution: Move skipping up. (Christian Brabandt, closes vim/vim#6382) https://github.com/vim/vim/commit/743d0620203388bf87dc611cea544b485e4b9f85
* vim-patch:8.2.1007: completion doesn't work after ":r ++arg !"Jan Edmund Lazo2020-12-26
| | | | | | | Problem: Completion doesn't work after ":r ++arg !". Solution: Skip over "++arg". (Christian Brabandt, closes vim/vim#6275, closes vim/vim#6258) https://github.com/vim/vim/commit/c8cb883015619cfe6db931ac2d6e15b0be5c56ed
* vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped EscJan Edmund Lazo2020-12-26
| | | | | | Problem: Mode is not cleared when leaving Insert mode with mapped Esc. Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269) https://github.com/vim/vim/commit/4c25bd785aa8b565bf973cbba12ed36b76daaa4f
* fix: appease linterMatthieu Coudron2020-12-24
|
* refactor: de-curwin-ify update_topline/curs_columnsMatthieu Coudron2020-12-23
|
* refactor: pass the window to get_(side)scrolloff_valueMatthieu Coudron2020-12-23
| | | | to less rely on curwin
* ex_cmds: port cmd_addr_T and ADDR_NONE (#13492)Jan Edmund Lazo2020-12-10
| | | | | | | Patch 8.1.1241 is too hard to port in 1 commit. https://github.com/neovim/neovim/pull/13079 is too hard to review and seems to be blocked. Use 'int' type for some addr variables to suppress 'switch/case' warnings.
* vim-patch:8.2.0095: cannot specify exit code for :cquit (#13407)Jan Edmund Lazo2020-11-28
| | | | | | | Problem: Cannot specify exit code for :cquit. Solution: Add optional argument. (Thinca, Yegappan Lakshmanan, closes vim/vim#5442) https://github.com/vim/vim/commit/1860bde9d31bbb0ba857f6284f6332a7134030dd Co-authored-by: erw7 <erw7.github@gmail.com>
* do_one_cmd: Remove :pyxdo/:pyxfile from "handle <bar>" switchJames McCoy2020-11-22
| | | | | | | | | | In 8f288698e4730f6cc91240fe899e93921aff9d71, these commands were incorrectly added to the switch that determines whether a command needs to parse for "|" on their own when ea.skip is set. This means that "if 0 | pyxfile foo.py | endif" would execute foo.py when it should do nothing. Removing them from the switch skips to the end of `do_one_cmd()`, avoiding running any script.
* vim-patch:8.1.0805: too many #ifdefsJan Edmund Lazo2020-11-12
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1. https://github.com/vim/vim/commit/135059724f140ceac889c9f8136bd1bf5c41d49d
* Removed restricted mode - Fix #11972georg3tom2020-11-11
|
* Add v:event flag on DirChanged signaling switching window (#13153)Andrea Cedraro2020-11-07
| | | Closes #9909
* Merge pull request #12870 from bfredl/themeparkBjörn Linse2020-11-01
|\ | | | | Color themes (per window/line) and lua theme providers
| * api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | | | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* | vim-patch:8.2.1910: reading past the end of the command lineJan Edmund Lazo2020-10-29
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Reading past the end of the command line. Solution: Check for NUL. (closes vim/vim#7204) https://github.com/vim/vim/commit/caf73dcfade0a435ea3f989285b43f07c40c9948 Cherry-pick undo_cmdmod() from patch 8.2.1137. N/A patches for version.c: vim-patch:8.1.2050: popup window test fails in some configurations Problem: Popup window test fails in some configurations. (James McCoy) Solution: Clear the command line. https://github.com/vim/vim/commit/7e0f462db594e3e2eee3a55531250a6afc9c0b92 vim-patch:8.2.0913: code for resetting v:register is duplicated Problem: Code for resetting v:register is duplicated. Solution: Add reset_reg_var(). https://github.com/vim/vim/commit/439c036ed062de1c87cc7e3fe050a9569fb12089 reset_reg_var() is not ported. Use set_reg_var(get_default_register_name()) instead. vim-patch:8.2.1913: GTK GUI: rounding for the cell height is too strict Problem: GTK GUI: rounding for the cell height is too strict. Solution: Round up above 15/16 of a pixel. (closes vim/vim#7203) https://github.com/vim/vim/commit/70cf45810cb9be5bd17074f7fb4ee238f2c4d57b vim-patch:8.2.1922: Win32: scrolling problems when part of window is off-screen Problem: Win32: scrolling doesn't work properly when part of window is off-screen. Solution: Fall back to GDI scrolling if part of the window is off-screen. Handle multi-monitor setup better. (Ken Takata, closes vim/vim#7219) https://github.com/vim/vim/commit/185577e47e5004a5d08a5405a02ab6a261078e42
* vim-patch:8.1.1260: comparing with pointer instead of valueJan Edmund Lazo2020-10-24
| | | | | | Problem: Comparing with pointer instead of value. Solution: Add a "*". (Ken Takata, closes vim/vim#4336) https://github.com/vim/vim/commit/e4f5f3aa3d597ec9188e01b004013a02bceb4026
* vim-patch:8.2.1856: "2resize" uses size of current windowJan Edmund Lazo2020-10-17
| | | | | | Problem: "2resize" uses size of current window. Solution: Use size of resized window. (Yasuhiro Matsumoto, closes vim/vim#7152) https://github.com/vim/vim/commit/9668cc57a1e70c99163f90f58202e206d12f40c8
* vim-patch:8.1.0095: dialog for ":browse tabnew" says "new window"Jan Edmund Lazo2020-10-14
| | | | | | Problem: Dialog for ":browse tabnew" says "new window". Solution: Use "new tab page". (closes vim/vim#3053) https://github.com/vim/vim/commit/39902a06d92750c203d86c921b9d69995f949d97
* vim-patch:8.1.1204: output of :command with address completion is not niceJan Edmund Lazo2020-10-11
| | | | | | Problem: Output of :command with address completion is not nice. Solution: Shorten the address completion names. https://github.com/vim/vim/commit/a561a41a70db7a9367f883c1dbb14e69b3364d08
* vim-patch:8.1.0560: cannot use address type "other" with with user commandJan Edmund Lazo2020-10-11
| | | | | | | Problem: Cannot use address type "other" with with user command. Solution: Add "other" to the list. (Daniel Hahler, closes vim/vim#3655) Also reject "%" for commands with "other". Add some more tests. https://github.com/vim/vim/commit/51a7454cd2c34ee459f104e45768eab3817c099e
* vim-patch:8.2.0841: 'verbose' value 16 causes duplicate outputJan Edmund Lazo2020-10-03
| | | | | | | Problem: 'verbose' value 16 causes duplicate output. Solution: Combine levels 15 and 16 into one message. (Christian Brabandt, closes vim/vim#6153) https://github.com/vim/vim/commit/823654bc06c847af20967d41db32d592aba416cb
* vim-patch:8.1.2143: cannot see each command even when 'verbose' is setJan Edmund Lazo2020-10-02
| | | | | | | | | | Problem: Cannot see each command even when 'verbose' is set. Solution: List each command when 'verbose' is at least 16. https://github.com/vim/vim/commit/4facea310c2788c88f021b262658b847381a50a8 Cherry-pick Test_tselect() from patch 8.1.2141. It requires screendump so it won't run. I cannot port it to a lua screen test.
* folds: pass column on fold creationMatthieu Coudron2020-09-28
| | | | | useful if we want to have inline folds later and/or let users create folds that remember their start/end columns.
* vim-patch:8.1.0640: get E14 while typing command :tab with 'incsearch' setJan Edmund Lazo2020-09-13
| | | | | | | Problem: Get E14 while typing command :tab with 'incsearch' set. Solution: Do not give an error when looking for the command. (Yasuhiro Higashi) https://github.com/vim/vim/commit/548e5985734e4b216852205879daf9bfb00dbe5a
* vim-patch:8.1.0392: error while typing :/foo/s// with 'incsearch' enabledAufar Gilbran2020-09-11
| | | | | | Problem: Error while typing :/foo/s// with 'incsearch' enabled. Solution: Do not give search errors when highlighting matches. https://github.com/vim/vim/commit/50eb16c3b23235b21ce4494673a7741a9a196176
* vim-patch:8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search patternAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' for :/foo/s//<Esc> changes last search pattern. Solution: Save the last search pattern earlier. https://github.com/vim/vim/commit/198cb66d652d3d8ac16226dcc929a11b0b720151
* vim-patch:8.1.0282: 'incsearch' does not work with command modifiersAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' does not work with command modifiers. Solution: Skip command modifiers. https://github.com/vim/vim/commit/33c4dbb74bdf41aadd193a704f597d4df20f0e47
* ex_docmd: merge parse_state_T with exarg_TAufar Gilbran2020-09-11
|
* vim-patch:8.1.0281: parsing command modifiers is not separatedAufar Gilbran2020-09-11
| | | | | | Problem: Parsing command modifiers is not separated. Solution: Move command modifier parsing to a separate function. https://github.com/vim/vim/commit/effed9315c6c5a35fc2824b90da4af753c7a02dc