aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
* clang/API: copy "" if orig_save is NULLJan Edmund Lazo2021-04-02
| | | | | | orig_save can be NULL if ExpandOne() is misused if ExpandOne() is first called with mode "WILD_CANCEL" or "WILD_APPLY" before other modes.
* vim-patch:8.2.2686: status line is not updated when going to cmdline modeJan Edmund Lazo2021-04-01
| | | | | | | | Problem: Status line is not updated when going to cmdline mode. Solution: Redraw status lines if 'statusline' is set and going to status line mode. (based on patch from Justin M. Keyes et al., closes vim/vim#8044) https://github.com/vim/vim/commit/ce0b75711afb3ff260967a0843bca46ec09604b5
* vim-patch:8.2.2341: expresison command line completion incomplete after "g:"Jan Edmund Lazo2021-03-12
| | | | | | | | | | Problem: Expresison command line completion shows variables but not functions after "g:". (Gary Johnson) Solution: Prefix "g:" when needed to a global function. https://github.com/vim/vim/commit/1bb4de5302ba038b9c59e845b6d735e87d5681d0 Port most of patch v8.2.0335 to complete script-local functions if the name starts with "s:".
* state: throttle batched event processing when input is availableBjörn Linse2021-03-08
| | | | | | | before, calling vim.schedule() from inside an event would execute the scheduled callback immediately after this event without checking for user input in between. Break event processing whenever user input or an interrupt is available.
* pos: define MAXCOL to INT_MAXJan Edmund Lazo2021-02-23
| | | | | Partial port of patch v8.1.0953. Remove useless casts on MAXCOL.
* 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.2492: command line buffer name cannot be translatedJan Edmund Lazo2021-02-10
| | | | | | Problem: Command line buffer name cannot be translated. Solution: Add _(). (Gabriel Dupras, closes vim/vim#7812) https://github.com/vim/vim/commit/b17ec4d427f9009eff5dbc3184b26d68b0163edb
* 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.
* 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.
* Don't show entire context when completingTony Chen2021-01-26
|
* feat: add completion to ':lua'TJ DeVries2021-01-26
|
* vim-patch:8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'Jan Edmund Lazo2021-01-17
| | | | | | Problem: Vim9: no highlight for "s///gc" when using 'opfunc'. Solution: Reset 'lazyredraw' temporarily. (closes vim/vim#7687) https://github.com/vim/vim/commit/7c886db915035bc064ca307f02c34ae9d99cc733
* 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.
* Merge pull request #13592 from bfredl/setmouseBjörn Linse2021-01-01
|\ | | | | ui: make 'mouse' handling in external UI more consistent
| * ui: make 'mouse' handling in external UI more consistentBjörn Linse2021-01-01
| | | | | | | | | | | | | | | | | | before the behaviour of 'mouse' was inconsistent in external UI, as some remapping logic would check has_mouse() and others don't (no difference in TUI or vim classic). With this change, the behaviour is consistently up to the UI decide (see ui.txt edit) Behaviour of tui.c is unaffected by this change.
* | 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.2.1580: wildmenu does not work properlyJan Edmund Lazo2020-12-26
| | | | | | | | | | | | | | Problem: Wildmenu does not work properly. Solution: Do not call may_do_incsearch_highlighting() if completion is in progress. https://github.com/vim/vim/commit/a60053b8f4cc7e135ba9496a8f4855d26aee09e7
* | vim-patch:8.2.2221: if <Down> is mapped on the command line 'wildchar' is ↵Jan Edmund Lazo2020-12-26
| | | | | | | | | | | | | | | | inserted Problem: If <Down> is mapped on the command line 'wildchar' is inserted. Solution: Set KeyTyped when using 'wildchar'. (closes vim/vim#7552) https://github.com/vim/vim/commit/b0ac4ea5e1c5f0ff4e951978c32ccfffe46916f8
* | 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
* | Merge pull request #13595 from teto/fix-fillerBjörn Linse2020-12-24
|\ \ | |/ |/| de curwinify some functions
| * refactor: de-curwin-ify update_topline/curs_columnsMatthieu Coudron2020-12-23
| |
* | vim-patch:8.2.1289: crash when using a custom completion function (#13565)Jan Edmund Lazo2020-12-20
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using a custom completion function. Solution: Initialize all of the expand_T. (closes vim/vim#6532) https://github.com/vim/vim/commit/c841afff6a89592f23710c6da5b0fea89b240937 Cherry-pick CLEAR_POINTER macro from patch v8.2.0559. N/A patches for version.c: vim-patch:8.1.1295: when vimrun.exe does not exist external command may fail Problem: When vimrun.exe does not exist external command may fail. Solution: Use "cmd /c" twice to get the same behavior. (Ken Takata, closes vim/vim#4355) https://github.com/vim/vim/commit/98ffe4c6d8bded840436cfec0f26dd9c9bce4939 vim-patch:8.2.2155: warning from Github actions for code analysis Problem: Warning from Github actions for code analysis. Solution: Remove the "git checkout HEAD^2" block. https://github.com/vim/vim/commit/18f69229c581a0f738145cdec70df66723a518fc vim-patch:8.2.2156: Github actions run on pusing a tag Problem: Github actions run on pusing a tag. Solution: Don't run CI on tag push. Omit coveralls on pull-request. (Ozaki Kiichi, closes vim/vim#7489) https://github.com/vim/vim/commit/b5b77378bc35cb268c384e98c59f2bf8cb406270 vim-patch:8.2.2158: CI on cirrus times out, coveralls doesn't always run Problem: CI on cirrus times out, coveralls doesn't always run. Solution: Set timeout to 20 minutes. Adjust condition. (closes vim/vim#7493) https://github.com/vim/vim/commit/6e562fcc07c71ad1437c89c3d3cc423efb691f0a
* vim-patch:8.1.2064: MS-Windows: compiler warnings for unused argumentsJan Edmund Lazo2020-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes vim/vim#4963) https://github.com/vim/vim/commit/bd67aac279adf3a1cfa11557229b44e4c2c3dcda N/A patches for version.c: vim-patch:8.1.0818: MS-Windows: cannot send large data with ch_sendraw() Problem: MS-Windows: cannot send large data with ch_sendraw(). Solution: Split write into several WriteFile() calls. (Yasuhiro Matsumoto, closes vim/vim#3823) https://github.com/vim/vim/commit/240583869ae477202494dd01ef1e8e2bac650f10 vim-patch:8.1.1131: getwinpos() does not work in the MS-Windows console Problem: getwinpos() does not work in the MS-Windows console. Solution: Implement getwinpos(). https://github.com/vim/vim/commit/16c34c37659e6afca74169969bdacb6b866548c9 vim-patch:8.2.0587: compiler warning for unused variable Problem: Compiler warning for unused variable. Solution: Add UNUSED. https://github.com/vim/vim/commit/21cfe500f322a0bea3367c677943ea6c57c282b9 vim-patch:8.2.0879: compiler warning for unused function argument Problem: Compiler warning for unused function argument. Solution: Add UNUSED. https://github.com/vim/vim/commit/f9ca08e95ff5b66a02c75334264dd86508b2a453 vim-patch:8.2.2104: build problem with Ruby 2.7 Problem: Build problem with Ruby 2.7. Solution: Adjust function declarations. (Ozaki Kiichi, closes vim/vim#7430) https://github.com/vim/vim/commit/d5a986f460019a924627d79350552f446505cffb
* ex_getln: add secret charmBjörn Linse2020-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Opt in to this secret world using set wildchar=0 " already the default, but remove if non-zero existing config: set wildcharm=0 now you can map 'wildmode' just like any mode: cnoremap <tab> <c-z> function! Spacey() return getcmdline()[-1:] == "/" ? "\<bs>" : "" endfunc cnoremap <expr> / wildmenumode() ? Spacey()."/<c-z>" : "/" Possibly asked questions: What about backwards compatibility? ==== Just do nothing and your existing 'wildchar' and 'wildcharm' will keep working. Doesn't `<c-z>` mean suspend? ==== Not in cmdline mode. If it would then the recommended wildcharm would not have been `<c-z>` to start with. My config relies on `:<c-z>` being a synonym to `:<nop>`! ==== just no.
* startup: load files from &packpath . '/start/{pluginname}'Björn Linse2020-11-19
| | | | | | | | | | | Quoting the existing docs: Packages are loaded. These are plugins, as above [&runtimepath], but found in the "start" directory of each entry in 'packpath'. Every plugin directory found is added in 'runtimepath' and then the plugins are sourced. Also tj didn't think I could do it.
* 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
* 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.1.1791: 'completeslash' also applies to globpath()skippi2020-10-26
| | | | | | Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes vim/vim#4760)
* vim-patch:8.1.1769: 'shellslash' is also used for completionskippi2020-10-26
| | | | | | Problem: 'shellslash' is also used for completion. Solution: Add the 'completeslash' option. (Yasuhiro Matsumoto, closes vim/vim#3612) https://github.com/vim/vim/commit/ac3150d385e6e3f3fe76642aac3cda954d30583f
* vim-patch:8.2.0087: crash in command line expansion when out of memoryJan Edmund Lazo2020-10-24
| | | | | | | | | | | | | | | | | | | | | | | Problem: Crash in command line expansion when out of memory. Solution: Check for NULL pointer. Also make ExpandGeneric() static. (Dominique Pelle, closes vim/vim#5437) https://github.com/vim/vim/commit/61d7c0d52ca40ab8488c36e619d1e46503affd0b N/A patches for version.c: vim-patch:8.2.1892: valgrind warns for using uninitialized access in tests Problem: Valgrind warns for using uninitialized access in tests. Solution: Fix condition for breaking out of loop. (Dominique Pellé, closes vim/vim#7187) https://github.com/vim/vim/commit/9c24cd11e2048e16e25271a7a7dbef4593890a18 vim-patch:8.2.1896: valgrind warns for using uninitialized memory Problem: Valgrind warns for using uninitialized memory. Solution: NUL terminate the SmcOpenConnection() error message. (Dominique Pellé, closes vim/vim#7194) https://github.com/vim/vim/commit/e1be11864d1f4383171e3af3eb77e61d41140c4e
* vim-patch:8.1.2222: accessing invalid memoryJan Edmund Lazo2020-09-15
| | | | | | Problem: Accessing invalid memory. (Dominique Pelle) Solution: Reset highlight_match every time. (closes vim/vim#5125) https://github.com/vim/vim/commit/7ab5d77666c98f5229759402a451a26ea57a4801
* vim-patch:8.1.2108: cannot close the cmdline window from CmdWinEnterJan Edmund Lazo2020-09-15
| | | | | | Problem: Cannot close the cmdline window from CmdWinEnter. (George Brown) Solution: Reset cmdwin_result earlier. (Christian Brabandt, closes vim/vim#4980) https://github.com/vim/vim/commit/23324a0b35d18c5caac20b1d543ed2d1f762f5b5
* vim-patch:8.2.0637: incsearch highlighting does not work for ":sort!"Jan Edmund Lazo2020-09-14
| | | | | | Problem: Incsearch highlighting does not work for ":sort!". Solution: Skip over the exclamation point. (closes vim/vim#5983) https://github.com/vim/vim/commit/333015a46e916f566763ec44ae8669c0378767d9
* vim-patch:8.1.2338: using Visual mark sith :s gives E20 if not setJan Edmund Lazo2020-09-14
| | | | | | | | | | | | | | | | | | | | | Problem: Using Visual mark sith :s gives E20 if not set. Solution: Ignore errors when handling 'incsearch'. (closes vim/vim#3837) https://github.com/vim/vim/commit/c672525b487992306f69ceab093291ba3b8e4246 N/A patches for version.c: vim-patch:8.2.1526: line in testdir Makefile got commented out Problem: Line in testdir Makefile got commented out. (Christian Brabandt) Solution: Revert. https://github.com/vim/vim/commit/228e62975e7aef9d6224a5a7c43625c1c1494fc2 vim-patch:8.2.1675: MinGW: testdir makefile deletes non-existing file Problem: MinGW: testdir makefile deletes non-existing file. Solution: Use another way to delete the output file if it already exists. (Michael Soyka) https://github.com/vim/vim/commit/05c1acd5e1564ea4dbc7d4be26908af6909f43f6
* vim-patch:8.1.1704: C-R C-W does not work after C-G when using 'incsearch'Jan Edmund Lazo2020-09-13
| | | | | | Problem: C-R C-W does not work after C-G when using 'incsearch'. Solution: Put cursor at end of the match. (Yasuhiro Matsumoto, closes vim/vim#4664) https://github.com/vim/vim/commit/69a5b867940d25f68a782de5c1165d65b51fcafa
* vim-patch:8.1.1148: CTRL-L with 'incsearch' does not pick up char under cursorJan Edmund Lazo2020-09-13
| | | | | | | | Problem: CTRL-L with 'incsearch' does not pick up char under cursor. (Smylers) Solution: Do not compare the position with the cursor position. (Hirohito Higashi, closes vim/vim#3620) https://github.com/vim/vim/commit/730f48fe3691dc62331f3df23cb947bfc33a5add
* vim-patch:8.1.0499: :2vimgrep causes an ml_get errorJan Edmund Lazo2020-09-13
| | | | | | Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
* vim-patch:8.1.0552: saved last search pattern may not be restoredAufar Gilbran2020-09-11
| | | | | | | Problem: Saved last search pattern may not be restored. Solution: Call restore_last_search_pattern(). Add a check for balancing saving and restoring the last search pattern. https://github.com/vim/vim/commit/01a060da74b756b161e595b39a7877cb7612120a
* vim-patch:8.1.0399: 'hlsearch' highlight remains in other windowAufar Gilbran2020-09-11
| | | | | | | Problem: 'hlsearch' highlight remains in other window after cancelling command. Solution: Redraw all windows. Also remove unnecessary delays. (closes vim/vim#3437) https://github.com/vim/vim/commit/65985ac998713dfe0f0ff1dd49c5e3e8f17f4870
* 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.0356: using :s with 'incsearch' prevents CTRL-R CTRL-WAufar Gilbran2020-09-11
| | | | | | | Problem: Using :s with 'incsearch' prevents CTRL-R CTRL-W. (Boris Staletic) Solution: When past the pattern put cursor back in the start position. (closes vim/vim#3413) https://github.com/vim/vim/commit/99f043a57d0be35ef72572b0429cf51525c3cd2b
* 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.0339: wrong highlight when 'incsearch' set and cancelling :sAufar Gilbran2020-09-11
| | | | | | Problem: Wrong highlight when 'incsearch' set and cancelling :s. Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe) https://github.com/vim/vim/commit/f13daa46da85a80dd05704cdde0660c2b2651a5a
* vim-patch:8.1.0321: 'incsearch' regression: /\v highlights everythingAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' regression: /\v highlights everything. Solution: Put back the empty_pattern() check. https://github.com/vim/vim/commit/4edfe2d2a2d70ea66a7f73e9b923c2d1f6246a57
* vim-patch:8.1.0320: too much 'incsearch' highlight for pat matching everythingAufar Gilbran2020-09-11
| | | | | | | Problem: Too much 'incsearch' highlight for pattern matching everything. Solution: Add the skiplen to the command and remove the line range. (Christian Brabandt) Check for empty pattern earlier. https://github.com/vim/vim/commit/8b0d5ce881ac16a36ea00018ba13a58b0fdb7534
* vim-patch:8.1.0296: command parsing for 'incsearch' is a bit uglyAufar Gilbran2020-09-11
| | | | | | Problem: Command parsing for 'incsearch' is a bit ugly. Solution: Return when there is no pattern. Put common checks together. https://github.com/vim/vim/commit/111bbd61e96d1d3ee4bc07ae435fd97b88413aba
* vim-patch:8.1.0295: no 'incsearch' highlighting for :vimgrep and similarAufar Gilbran2020-09-11
| | | | | | | Problem: No 'incsearch' highlighting for :vimgrep and similar commands. Solution: Parse the :vimgrep command and similar ones to locate the search pattern. (Hirohito Higashi, closes vim/vim#3344) https://github.com/vim/vim/commit/264cf5cfaf40e704aea2578e70c15ed9a9d0161e
* vim-patch:8.1.0291: 'incsearch' highlighting not used for :sortAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' highlighting not used for :sort. Solution: Handle pattern in :sort command. https://github.com/vim/vim/commit/81f56536b1bc324eb173924a8cf4d7dbbf4f3fdb
* vim-patch:8.1.0286: 'incsearch' does not apply to :smagic and :snomagicAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' does not apply to :smagic and :snomagic. Solution: Add support. (Hirohito Higashi) https://github.com/vim/vim/commit/167ae42685dcd430800c51ac7339f7f0938a3e70
* vim-patch:8.1.0284: 'cursorline' highlighting wrong with 'incsearch'Aufar Gilbran2020-09-11
| | | | | | Problem: 'cursorline' highlighting wrong with 'incsearch'. Solution: Move the cursor back if the match is outside the range. https://github.com/vim/vim/commit/2f6a346a4cd2d5bdd6dc9b3209ebce7b6340221d