aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
| * 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
| | |
* | | vim-patch:8.1.2225: the "last used" info of a buffer is under usedRob Pilling2020-04-21
|/ / | | | | | | | | | | | | Problem: The "last used" info of a buffer is under used. Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used field. (Andi Massimino, closes vim/vim#4722) https://github.com/vim/vim/commit/52410575be50d5c40bbe6380159df48cfc382ceb
* | vim-patch:8.1.2378: using old C style commentsJan Edmund Lazo2020-04-12
| | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/5d18efecfd6c45d69f55268948a22cd0465bb955
* | Merge pull request #11746 from Billy4195/add_wildmenu_keyMatthieu Coudron2020-03-28
|\ \ | | | | | | [RFC] Wildmenu support C-E and C-Y as popupmenu
| * | ex_getln.c: wildmenu add cancel and apply opsBilly Su2020-01-23
| | |
* | | PVS/V618: fix printf-style args #11888Justin M. Keyes2020-02-22
| | | | | | | | | | | | We intentionally do not translate API errors. ref: https://github.com/neovim/neovim/issues/6150
* | | 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
* | doc: fix typos [ci skip] #11787Hye Sung Jung2020-01-30
| |
* | wildmode: fix wildmode=longest,full with pum #11690akovaski2020-01-21
|/ | | | | | With "wildmode=longest,full" + wildoptions=pum, wildmode should show popupmenu after Tab-Tab, not the horizontal wildmenu. Fixes #11622
* vim-patch:8.0.1769: refactor save/restore of viewstate #11701Jan Edmund Lazo2020-01-11
| | | | | Problem: Repeated saving and restoring viewstate for 'incsearch'. Solution: Use a structure. https://github.com/vim/vim/commit/9b25af36204c0511eab08d621688f0f2008fc68e
* Remove (void) hacks, Mark unused attrsJan Edmund Lazo2020-01-08
|
* vim-patch:8.2.0099: use of NULL pointer when out of memoryJan Edmund Lazo2020-01-07
| | | | | | Problem: Use of NULL pointer when out of memory. Solution: Check for NULL pointer. (Dominique Pelle, closes vim/vim#5449) https://github.com/vim/vim/commit/8b7aa2f9b238df916c161cdacda032c25d72a0ae
* vim-patch:8.0.1356: using simalt in a GUIEnter autocommand inserts charactersJan Edmund Lazo2019-12-30
| | | | | | | Problem: Using simalt in a GUIEnter autocommand inserts strange characters. (Chih-Long Chang) Solution: Ignore K_NOP in Insert mode. (closes vim/vim#2379) https://github.com/vim/vim/commit/c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62
* ex_getln: fix pvs/v781Jan Edmund Lazo2019-12-26
|
* vim-patch:8.0.1767: with 'incsearch' text may jump up and downJan Edmund Lazo2019-12-22
| | | | | | | Problem: With 'incsearch' text may jump up and down. () Solution: Besides w_botline also save and restore w_empty_rows. (closes # 2530) https://github.com/vim/vim/commit/9d34d90210ba52ebaf45973282e5921f5af364c7
* vim-patch:8.1.2385: open cmdline window with feedkeys() #11516Jan Edmund Lazo2019-12-04
| | | | | | Problem: Opening cmdline window with feedkeys() does not work. (Yegappan Lakshmanan) Solution: Recognize K_CMDWIN also when ex_normal_busy is set. https://github.com/vim/vim/commit/85db5475982e166ec5bb1c8c9a5c8bf062d49ed1
* vim-patch:8.1.2017: cannot execute commands after closing cmdline window #11479Daniel Hahler2019-11-29
| | | | | | | Problem: Cannot execute commands after closing the cmdline window. Solution: Also trigger BufEnter and WinEnter. (closes vim/vim#4762) https://github.com/vim/vim/commit/96e38a86a710fb6daec4550ac1667f019dc3a40e Fixes https://github.com/neovim/neovim/issues/11279.
* vim-patch:8.1.0223: completing shell command finds sub-directories in $PATHJan Edmund Lazo2019-11-25
| | | | | | Problem: Completing shell command finds sub-directories in $PATH. Solution: Remove EW_DIR when completing an item in $PATH. (Jason Franklin) https://github.com/vim/vim/commit/6ab9e429da18f4d784222a9f7dfafb7c0218b7eb
* Prevent prompts during inccommand previewsRob Pilling2019-10-31
| | | | For example, "Backwards range given, OK to swap (y/n)?" on each keypress.
* 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.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
* vim-patch:8.1.2120: some MB_ macros are more complicated than necessaryJan Edmund Lazo2019-10-06
| | | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline. https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
* ex_getln.c: fix <S-Tab> not triggering pum when wildoptions=pum (#10042)glacambre2019-09-08
| | | | | | Some of the logic that was present for <Tab> was missing from <S-Tab>. Closes https://github.com/neovim/neovim/issues/10042.
* vim-patch:8.1.0362: cannot get the script line number when executing a functionerw72019-09-04
| | | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes vim/vim#3362) Also display the line number with ":verbose set". https://github.com/vim/vim/commit/f29c1c6aa3f365c025890fab5fb9efbe88eb1761
* vim-patch:8.0.1768: SET_NO_HLSEARCH() used in a wrong wayJan Edmund Lazo2019-09-02
| | | | | | | Problem: SET_NO_HLSEARCH() used in a wrong way. Solution: Make it a function. (suggested by Dominique Pelle, closes vim/vim#2850) https://github.com/vim/vim/commit/451fc7b954906069f1830a8092ad85616049a828
* screen: use dedicated message gridBjörn Linse2019-09-01
| | | | | | | | add proper msg_set_pos event, delet win_scroll_over_* make compositor click through unfocusable grids add MsgArea attribute for the message/cmdline area, and add docs and tests
* vim-patch:8.1.0233: "safe" argument of call_vim_function() is always FALSEJan Edmund Lazo2019-08-30
| | | | | | Problem: "safe" argument of call_vim_function() is always FALSE. Solution: Remove the argument. https://github.com/vim/vim/commit/ded27a1febda3db7447958b60a7d791af514d124
* paste: WIP #4448Justin M. Keyes2019-08-27
|
* vim-patch:8.1.1897: may free memory twice when out of memory (#10827)Jan Edmund Lazo2019-08-22
| | | | | | Problem: May free memory twice when out of memory. Solution: Check that backslash_halve_save() returns a different pointer. (Dominique Pelle, closes vim/vim#4847) https://github.com/vim/vim/commit/f1552d07d715b437d941659479942c2543b02bd4
* ex_getln.c: fix compute_cmdrow() not resetting lines_left (#10749)Ghjuvan Lacambre2019-08-12
| | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, when `inccomand` was set to `nosplit`, multi-line substitutions collapsed the command-line. This happened because when ex_getln.c:cursorcmd() computed a msg_row, it was given a cmdline_row one line too high. This happened because message.c:msg_puts_display() was supposed to decrement cmdline_row but didn't, because of the `msg_no_more && lines_left == 0` check placed just before the decrementation part in msg_puts_display's while loop. Every time msg_puts_display writes a line, it decreases `lines_left` (a variable used to know how many lines are left for prompts). Since redrawcommandline() did not reset `lines_left` between calls to msg_puts_display, every time a character was pressed, `lines_left` was decremented. This meant that once the user pressed COLUMNS+ROWS numbers of characters, `lines_left` would reach 0 and prevent msg_row from being decremented. It makes sense to fix setting `lines_left` to `cmdline_row` in `compute_cmdrow` ; after all, computing where the command line row should be placed is equivalent to computing how many `lines_left` of output there are left. Closes #8254.
* Merge #10615 'vim-patch:8.1.0053'Justin M. Keyes2019-07-29
|\ | | | | fix #10604
| * vim-patch:8.1.53 use typval_T in the caller of call_vim_functioncangscop2019-07-27
| | | | | | | | | | | | Problem: unreliable types for complete function arguments Solution: fix argument type for functions w/ unreliable type conversion(Ozaki Kiichi) vim/vim#2993
* | vim-patch:8.1.0017: shell command completion has duplicates #10616erw72019-07-29
|/ | | | | Problem: Shell command completion has duplicates. (Yegappan Lakshmanan) Solution: Use a hash table to avoid duplicates. (Ozaki Kiichi, closes vim/vim#539, closes vim/vim#2733) https://github.com/vim/vim/commit/62fe66f251263715968442e237742d9d3dfd5fa1
* refactor: use int for Columns and RowsBjörn Linse2019-07-19
|
* refactor: enable -Wconversion for ex_getln.cBjörn Linse2019-07-19
|
* vim-patch:8.1.1632: build with EXITFREE but without +arabic failsJan Edmund Lazo2019-07-05
| | | | | | Problem: Build with EXITFREE but without +arabic fails. Solution: Rename the function and adjust #ifdefs. (closes vim/vim#4613) https://github.com/vim/vim/commit/48ac671fe5cb5a7c2d5263d2f122e5e903022e30
* cmdline: remove local variables i and j from command_line_stateBjörn Linse2019-07-02
|
* cmdline: correct the column position of wildoptions=pum popupmenuBjörn Linse2019-07-01
| | | | | - position might get invalid with "longest" match - position might be wrong when completed pattern ends in "/"
* cmdline: remove invalid cmdline_show event when aborting mappingBjörn Linse2019-06-26
|
* vim-patch:8.1.0629: "gn" selects the wrong text with a multi-line matcherw72019-06-04
| | | | | | Problem: "gn" selects the wrong text with a multi-line match. Solution: Get the end position from searchit() directly. (closes vim/vim#3695) https://github.com/vim/vim/commit/5d24a2257e597fd752e33b2c1e9c19cf9114a517
* Fix multiple c_CTRL-D showing statuslineJit Yao Yap2019-06-03
|
* Make sure msg_clear is sent after confirm message (#10065)Ville Hakulinen2019-06-02
|
* Merge #10059 from jerdna-regeiz/vim-8.1.0614Justin M. Keyes2019-05-26
|\ | | | | vim-patch:8.1.0614,8.1.0632,8.1.0644,8.1.0658,8.1.0660,8.1.0669,8.1.0673,8.1.0679,8.1.0697,8.1.0701,8.1.0702,8.1.0709,8.1.0717,8.1.0750,8.1.0767,8.1.0772,8.1.0039
| * vim-patch:8.1.0673: functionality for signs is spread out over several filesAndrej Zieger2019-05-26
| | | | | | | | | | | | | | Problem: Functionality for signs is spread out over several files. Solution: Move most of the sign functionality into sign.c. (Yegappan Lakshmanan, closes vim/vim#3751) https://github.com/vim/vim/commit/bbea47075cc4e7826e9f8c203e4272ba023ed7b0
* | UI/cmdline: check if redraw is needed after K_EVENT, K_COMMAND #9804Jit2019-05-26
|/ | | fixes #8490
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* ex_getln: fix statusline redraw logic #9967Carlo Abelli2019-05-02
| | | fixes #9908
* lintJan Edmund Lazo2019-04-30
|