aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
Commit message (Collapse)AuthorAge
* refactor(style): switch-case formatting, "uncrustify:indent-off" #15669dundargoc2021-09-17
| | | | | | * refactor: disable formatting for attribute in macro * fixup: disable/enable uncrustify with uncrustify:indent-off/on * fixup: stop indenting contents inside braces in case * fixup: remove case brace if no variable declaration
* fix: prevent K_EVENT from stopping Select mode CTRL-O #15688zeertzjq2021-09-17
| | | | | | When using Goneovim, Select mode `CTRL-O` returns back to Select mode immediately (even with `--clean`). Neovim TUI (with some plugins) also randomly returns to Select mode even if no keys are pressed when using `CTRL-O` in Select mode.
* Merge #15626 vim-patch:8.1.{2281,2283},8.2.{2903,3391,3397}Justin M. Keyes2021-09-10
|\
| * vim-patch:8.1.2281: 'showbreak' cannot be set for one windowSean Dewar2021-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'showbreak' cannot be set for one window. Solution: Make 'showbreak' global-local. https://github.com/vim/vim/commit/ee85702c10495041791f728e977b86005c4496e8 Change in oneleft() is N/A as the relevant condition was removed (has_mbyte is always true for Nvim, so the condition was always false; see commit 73dc9e9). Use wp over curwin for curs_columns(). Required for v8.2.2903 (otherwise test fails as it'll leave the global option set). N/A patches for version.c: vim-patch:8.1.2283: missed on use of p_sbr Problem: Missed on use of p_sbr. Solution: Add missing p_sbr change. https://github.com/vim/vim/commit/91e22eb6e09ec384496fccde812072033fd9e616 Already ported in commit 43a874a.
* | refactor: format files with uncrustify #15607dundargoc2021-09-10
|/
* refactor: format files with uncrustifyDundar Göc2021-09-07
|
* vim-patch:8.2.2938: after using motion force from feedkeys() it sticks (#15240)Xiao2021-08-29
| | | | | Problem: After using motion force from feedkeys() it may not be reset. Solution: Clear motion_force in clearop(). (closes vim/vim#8323) https://github.com/vim/vim/commit/21492743e80c6740bac65a91311c28bede8ef2f8
* Merge #15293 Vimscript "method" syntaxJustin M. Keyes2021-08-26
|\ | | | | Port VimL's method call syntax - vim-patch:8.1.{1638,1800,1803,1807,1809,1816,1820,1821,1828,1834,1835,1861,1863,1878,1879,1888,1909,1911,1912}
| * vim-patch:8.1.1800: function call functions have too many argumentsSean Dewar2021-08-12
| | | | | | | | | | | | | | | | | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct. https://github.com/vim/vim/commit/c6538bcc1cdd1fb83732f22fdc69bd9bb66f968a Use FUNCEXE_INIT to initialize funcexe_T instances. call_callback() and other Vim listener related stuff is N/A.
* | feat(keywordprg): use :terminal for external commands #15398Gregory Anders2021-08-21
| | | | | | | | | | | | | | Open external 'keywordprg' commands in a :terminal in a new tab. <Esc> is mapped to stop the job and close the buffer. Closes #2995 Closes #2761
* | feat: defaults: set undo points in <C-U> and <C-W> (#15400)Gregory Anders2021-08-16
| |
* | feat(defaults): map CTRL-L to search highlights, update diffs #15385Gregory Anders2021-08-16
| |
* | fix(defaults): do not map Y in visual-mode #15387Justin M. Keyes2021-08-16
| | | | | | | | | | Y in visual-mode is unrelated to the normal-mode behavior. reverts part of #13268
* | feat(defaults): map Y to y$ #13268Matthieu Coudron2021-08-15
|/ | | | | | | | | rationale: - consistent with D and Y - long recommended by Vim's own ":help Y" close #13268 close #416 ref #6289
* refactor(plines): move out plines related code from misc1.cBjörn Linse2021-08-10
|
* refactor(plines): remove implicit curwin plines() functionBjörn Linse2021-08-10
|
* vim-patch:8.1.2214: too much is redrawn when 'cursorline' is setzeertzjq2021-08-02
| | | | | | Problem: Too much is redrawn when 'cursorline' is set. Solution: Don't do a complete redraw. (closes vim/vim#5079) https://github.com/vim/vim/commit/11a58af66fa5c442f0a22c5d59beabf187ed4e89
* vim-patch:8.1.2029: cannot control 'cursorline' highlighting wellzeertzjq2021-08-02
| | | | | | Problem: Cannot control 'cursorline' highlighting well. Solution: Add "screenline". (Christian Brabandt, closes vim/vim#4933) https://github.com/vim/vim/commit/017ba07fa2cdc578245618717229444fd50c470d
* vim-patch:8.2.3236: mode() does not indicate using CTRL-O in Select modezeertzjq2021-07-29
| | | | | | Problem: mode() does not indicate using CTRL-O in Select mode. Solution: Use "vs" and similar. (closes vim/vim#8640) https://github.com/vim/vim/commit/eaf3f36168f85c8e0ab7083cd996b9fbe937045d
* refactor: replace TRUE/FALSE macros with C99 true/falseDundar Göc2021-07-25
|
* Remove EXMODE_NORMALmatveyt2021-07-23
|
* chore: use codespell to spell check #15016dundargoc2021-07-07
|
* vim-patch:8.1.1838: there is :spellwrong and :spellgood but not :spellrareJan Edmund Lazo2021-06-12
| | | | | | Problem: There is :spellwrong and :spellgood but not :spellrare. Solution: Add :spellrare. (Martin Tournoij, closes vim/vim#4291) https://github.com/vim/vim/commit/08cc374dabd2a02785129fa1c0100f7745c244ad
* vim-patch:8.2.2971: cannot yank a block without trailing spacesJan Edmund Lazo2021-06-10
| | | | | | Problem: Cannot yank a block without trailing spaces. Solution: Add the "zy" command. (Christian Brabandt, closes vim/vim#8292) https://github.com/vim/vim/commit/544a38e44db0f25ec4fa7a2a4666cf28a2336f33
* vim-patch:8.2.2422: crash when deleting with line number out of rangeJan Edmund Lazo2021-06-10
| | | | | | Problem: Crash when deleting with line number out of range. (Houyunsong) Solution: Avoid using a negative line number. https://github.com/vim/vim/commit/1d859e24218635c57c09801840ff159cb845ae6a
* fold: pvs/v1071Jan Edmund Lazo2021-06-05
| | | | "void" cast unused return value of hasFolding().
* vim-patch:8.2.2914: cannot paste a block without adding paddingJan Edmund Lazo2021-05-31
| | | | | | | | | Problem: Cannot paste a block without adding padding. Solution: Add "zp" and "zP" which paste without adding padding. (Christian Brabandt, closes vim/vim#8289) https://github.com/vim/vim/commit/2fa9384ca1b600b934bec81a72c5fb7ce757503a Cherry-pick Test_normal_z_error() from patch v8.2.0369.
* vim-patch:8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented codeJan Edmund Lazo2021-05-19
| | | | | | | Problem: Unnessary VIM_ISDIGIT() calls, badly indented code. Solution: Call skipdigits() on the next character. Improve indenting. (Dominique Pellé, closes vim/vim#8227) https://github.com/vim/vim/commit/4781d6fd8670af415c3b78f00d70036af85bd286
* vim-patch:8.2.2832: operator cancelled by moving mouse when using popupJan Edmund Lazo2021-05-06
| | | | | | | Problem: Operator cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Do not trigger an operator for a mouse move events. (closes vim/vim#8176) https://github.com/vim/vim/commit/1ad72c8eb601d681c84b47380fc31b6d23602d51
* vim-patch:8.0.1309: cannot use 'balloonexpr' in a terminalJan Edmund Lazo2021-05-06
| | | | | | | Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI. https://github.com/vim/vim/commit/51b0f3701ecb440aa72ab6017c1df6940c0e0f6f
* vim-patch:8.1.2313: debugging where a delay comes from is not easyJan Edmund Lazo2021-04-15
| | | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay(). https://github.com/vim/vim/commit/eda1da0c9a8db1400649629117e7d248c07735f7
* vim-patch:8.2.2711: "gj" in a closed fold does not move out of the foldJan Edmund Lazo2021-04-05
| | | | | | | | | | | | | | | | | | | | | Problem: "gj" in a closed fold does not move out of the fold. (Marco Hinz) Solution: Add a check for being in a closed fold. (closes vim/vim#8062) https://github.com/vim/vim/commit/3c49e74e18993915a779cafe4af3749b39fd3e2a N/A patches for version.c: vim-patch:8.2.2709: the GTK GUI has a gap next to the scrollbar Problem: The GTK GUI has a gap next to the scrollbar. Solution: Calculate the scrollbar padding for GTK. (closes vim/vim#8027) https://github.com/vim/vim/commit/26af8e54ff0d423b7258ef84d175c8570740629a vim-patch:8.2.2717: GTK menu items don't show a tooltip Problem: GTK menu items don't show a tooltip. Solution: Add a callback to show the tooltip. (Leonid V. Fedorenchik, closes vim/vim#8067, closes vim/vim#7810) https://github.com/vim/vim/commit/ce5b06a6a972dcc36e460782e10e21a09b227b5d
* vim-patch:8.2.0295: highlighting for :s wrong when using different separator ↵Ghjuvan Lacambre2021-04-04
| | | | | | | | (#14286) Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes vim/vim#5665) https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd
* vim-patch:8.1.0542: shiftwidth() does not take 'vartabstop' into accountVVKot2021-03-28
| | | | | | | | Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt) https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2
* 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.
* [RDY] Fix click on foldcolumn if it has tabline (#13982)tk-shirasaka2021-03-04
| | | | | | | * Fix click on foldcolumn if it has tabline * Fixes to correctly determine if tablie was clicked when multigrid is enabled * Separate foldcolumn checks into functions * Add test case for click on foldcolumn with split window * Fix foldcolumn click used nvim_input() on multigrid enabled
* 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.2548: May get stuck in the cmdline window using :normalJan Edmund Lazo2021-02-23
| | | | | | Problem: May get stuck in the cmdline window using :normal. Solution: Have nv_esc() return K_IGNORE. https://github.com/vim/vim/commit/7d41410a455ba62128655beb91c35d3fba299287
* vim-patch:8.2.2547: "%" command not accurate for big filesJan Edmund Lazo2021-02-23
| | | | | | | | | | | | | | | | Problem: "%" command not accurate for big files. Solution: Make it more accurate for files up to 21M lines. (Dominique Pellé, closes vim/vim#7889) https://github.com/vim/vim/commit/2c6553498e790604f50016d8435403523a2576d6 N/A patches for version.c: vim-patch:8.2.2545: errors and crash when terminal window is zero height Problem: Errors and crash when terminal window is zero height. (Leonid V. Fedorenchik) Solution: Do not resize when width or height is zero. (closes vim/vim#7890) https://github.com/vim/vim/commit/eba13e4ea28f133ff65f6b426428f49a9bd711b0
* vim-patch:8.2.2385: "gj" and "gk" do not work correctly when inside a foldJan Edmund Lazo2021-01-22
| | | | | | Problem: "gj" and "gk" do not work correctly when inside a fold. Solution: Move check for folding. (closes vim/vim#7724, closes vim/vim#4095) https://github.com/vim/vim/commit/e71996bd0865659bde5450f466bc3e53e83431b2
* 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.
* | vim-patch:8.1.1032: warnings from clang static analyzerJan Edmund Lazo2020-12-28
| | | | | | | | | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings. https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587
* | Merge pull request #13595 from teto/fix-fillerBjörn Linse2020-12-24
|\ \ | |/ |/| de curwinify some functions
| * 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
* | vim-patch:8.1.1657: Terminal: screen updates from 'balloonexpr' are not ↵Jan Edmund Lazo2020-12-19
|/ | | | | | | | | displayed Problem: Terminal: screen updates from 'balloonexpr' are not displayed. Solution: Update the screen if needed. Fix the word position for "mousemoved". https://github.com/vim/vim/commit/7ba343e63483b09584d4bf5a997fc1d1c09f19f7
* vim-patch:8.2.2029: Coverity warns for not checking return valueJan Edmund Lazo2020-11-21
| | | | | | Problem: Coverity warns for not checking return value. Solution: Check that u_save_cursor() returns OK. https://github.com/vim/vim/commit/5546688fb6798d37a770f366c13dedfa7e4cb417
* menu: remove winbar codeJan Edmund Lazo2020-11-20
| | | | | | | | | No unmerged Vim patch, applicable to Neovim, depend on WinBar feature. It was merged only for merging Vim patches. It is currently useless in Neovim. Remove it to avoid rendering issues. Close https://github.com/neovim/neovim/issues/12689