Commit Graph
16206 Commits
Author SHA1 Message Date
Jan Edmund Lazo 2ed48e71d3 vim-patch:8.1.2222: accessing invalid memory
Problem:    Accessing invalid memory. (Dominique Pelle)
Solution:   Reset highlight_match every time.  (closes vim/vim#5125)
https://github.com/vim/vim/commit/7ab5d77666c98f5229759402a451a26ea57a4801
2020-09-15 23:00:35 -04:00
Jan Edmund Lazo ba16475549 vim-patch:8.1.2108: cannot close the cmdline window from CmdWinEnter
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
2020-09-15 23:00:35 -04:00
Jan Edmund Lazo eb981a01e3 vim-patch:8.2.1684: "gF" does not use line number after file in Visual mode
Problem:    "gF" does not use line number after file in Visual mode.
Solution:   Look for ":123" after the Visual area. (closes vim/vim#6952)
https://github.com/vim/vim/commit/efd5d8a967ba80f9e2826c35be98344d8f00af77

Cherry-pick test_gf_visual changes from patch 8.2.1040.
2020-09-14 18:54:07 -04:00
Jan Edmund Lazo cc484928d5 vim-patch:8.2.0637: incsearch highlighting does not work for ":sort!"
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
2020-09-14 18:19:45 -04:00
Jan Edmund Lazo ea03032018 vim-patch:8.1.2338: using Visual mark sith :s gives E20 if not set
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
2020-09-14 18:19:45 -04:00
Raphael f34eeba2d8 lsp: fix failed switch window error (#12900)
* fix failed switch window error

* checks if  window already exists
2020-09-14 11:03:02 -04:00
TJ DeVries 4a2618c817 doc: Add docs for uri functions (#12887) 2020-09-14 09:12:17 -04:00
Jan Edmund Lazo 20f7b94284 Merge pull request #12905 from janlazo/vim-8.1.0555
vim-patch:8.1.{499,555,556,584,640,1148,1704},8.2.0902
2020-09-13 12:46:32 -04:00
Jan Edmund Lazo 8105fc89c4 vim-patch:8.1.1704: C-R C-W does not work after C-G when using 'incsearch'
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
2020-09-13 08:25:20 -04:00
Jan Edmund Lazo 25992df761 vim-patch:8.1.1148: CTRL-L with 'incsearch' does not pick up char under cursor
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
2020-09-13 08:25:20 -04:00
Jan Edmund Lazo 476c50903a vim-patch:8.1.0499: :2vimgrep causes an ml_get error
Problem:    :2vimgrep causes an ml_get error
Solution:   Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
2020-09-13 08:25:20 -04:00
Jan Edmund Lazo cc049a5612 vim-patch:8.1.0640: get E14 while typing command :tab with 'incsearch' set
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
2020-09-13 08:25:20 -04:00
Jan Edmund Lazo 4327fe8da5 vim-patch:8.2.0902: using searchcount() in 'statusline' causes an error
Problem:    Using searchcount() in 'statusline' causes an error.
Solution:   Avoid saving/restoring the search patten recursively.
            (closes vim/vim#6194)
https://github.com/vim/vim/commit/442a85369f3eb9834dbab42add45f7c4106700f4
2020-09-13 08:25:20 -04:00
Jan Edmund Lazo ce32545708 vim-patch:8.1.0556: saving/restoring search patterns share saved last_idx
Problem:    Saving/restoring search patterns share saved last_idx.
Solution:   Use a separate saved last_idx for saving search patterns for
            functions and incremental search.
https://github.com/vim/vim/commit/ed8bc78d2386d22656ba1d3e5cf739dd12964dce
2020-09-13 08:25:19 -04:00
Jan Edmund Lazo 870f88f387 vim-patch:8.1.0584: with search CTRL-L does not pick up composing characters
Problem:    With search CTRL-L does not pick up composing characters.
Solution:   Check for composing characters. (Christian Brabandt, closes vim/vim#3682)
            [code change was accidentally included in 8.1.0579]
https://github.com/vim/vim/commit/5f5e203c92365ac6399de3663637b73bf9fb6dfa
2020-09-13 08:25:19 -04:00
Jan Edmund Lazo d5eff30c72 vim-patch:8.1.0555: crash when last search pat is set but not last substitute pat
Problem:    Crash when last search pat is set but not last substitute pat.
Solution:   Do not mix up last search pattern and last subtitute pattern.
            (closes vim/vim#3647)
https://github.com/vim/vim/commit/2fb8f684d888ad68b283ba8f9505106b5fb725be
2020-09-13 08:25:19 -04:00
Björn Linse c7ef802206 Merge pull request #12841 from bfredl/buf_do
nvim_buf_call to call function in the context of another buffer
2020-09-13 12:04:38 +02:00
Björn Linse ead2fcf4ee api: add nvim_buf_call to call function with curbuf changed to buffer 2020-09-13 09:11:38 +02:00
Björn Linse 542022aae4 Merge pull request #12851 from bfredl/luahl
luahl: still WIP but better
2020-09-13 08:29:49 +02:00
Björn Linse 2c15f695a8 luahl: temporary workaround for virt_text ownership ambiguity 2020-09-13 07:46:39 +02:00
Björn Linse 4042975df4 luahl: global the luahl 2020-09-13 07:46:39 +02:00
Stephan Seitz 05c68922d3 Fix typo in treesitter docs: parser directory is parser not parsers 2020-09-13 07:46:39 +02:00
Thomas Vigouroux e4b5efa51e fix: use luahl in treesitter 2020-09-13 07:46:39 +02:00
Björn Linse 18a3a89822 luahl 2020-09-13 07:46:39 +02:00
Jan Edmund Lazo 4d3ef578e9 Merge pull request #12883 from janlazo/vim-8.2.1640
vim-patch:8.1.{1296,1297,1298},8.2.{1640,1645,1646,1648,1649,1654,1655,1661}
2020-09-12 15:04:56 -04:00
erw7 397be5d380 UI: fix cursor not displayed after hiding and un-hiding #12811
- TUI: Fix a case where the cursor was not displayed after hiding the
  cursor and then setting it to be displayed again.
- Change to reset everything before setting guicursor.

fixes #12800
close #12811

Steps to reproduce:

    nvim -u NORC
    :set termguicolors
    :hi nCursor guifg=red guibg=red
    :hi iCursor guifg=green guibg=green
    :hi cCursor guifg=blue guibg=blue
    :set guicursor=n:block-nCursor,i:hor25-iCursor,c:ver25-cCursor
    :set guicursor-=c:ver25-cCursor

Actual behaviour: Cursor is a blue vertical.
Expected behaviour: Cursor should be the default color block.
2020-09-12 11:42:42 -07:00
Dave Lage 1e10342382 docs: Add hint for :help vim.lsp.buf for new users (#12886)
* docs: Add hint for :help vim.lsp.buf for new users

* fix: Use help linker for vim.lsp.buf

* docs: Extend full api list language. Move gd to bottom. Add note about limited support
2020-09-12 13:01:14 -04:00
beardedsakimonkeyandtim apple 01ae5e7c38 lsp: fix lsp.buf.formatting_sync() null response (#12752)
Co-authored-by: tim apple <tim@tims-MacBook-Pro.local>
2020-09-12 18:39:52 +02:00
Xuyuan Pang f3b5531ae8 lsp: Fix parameter markdown rendering for signature help (#12832) 2020-09-12 18:33:31 +02:00
Dave Lage 97c03227c8 docs: Use nvim-lspconfig plugin in lsp docs (#12885)
* docs: Use nvim-lspconfig plugin in lsp docs
2020-09-12 17:52:30 +02:00
Jan Edmund Lazo b23907e7ce Merge pull request #12721 from aufarg/vim-8.1.0265
[RDY] vim-patch:8.1.{265,271,273,274,275,277,278,279,280,281,282,284,286,291,295,296,320,321,339,351,392,399,552}
2020-09-12 10:51:59 -04:00
Dave Lage 459f8ad808 docs: Align help docs to match using tab (#12891) 2020-09-12 16:48:16 +02:00
Jan Edmund Lazo 20b745b45b vim-patch:8.1.1298: invalid argument test fails without X clipboard
Problem:    Invalid argument test fails without X clipboard.
Solution:   Test -display only with the +xterm_clipboard feature.
https://github.com/vim/vim/commit/5416b75031138182387399f8fe5e17a884414e1a

N/A patches for version.c:

vim-patch:8.2.1640: Amiga: missing header for getgrgid()

Problem:    Amiga: missing header for getgrgid().
Solution:   Add the grp.h header. (Ola Söder, closes vim/vim#6906)
https://github.com/vim/vim/commit/f842cd9e285afb9d86c6f9bff400e5e576f873c0

vim-patch:8.2.1645: GTK3: icons become broken images when resized

Problem:    GTK3: icons become broken images when resized.
Solution:   Use gtk_image_new_from_icon_name(). (closes vim/vim#6916)
            Fix compiler warnings.
https://github.com/vim/vim/commit/81a4cf469a0f5c1603ac3130af9f011053854180

vim-patch:8.2.1646: Amiga: Unnecessary #include

Problem:    Amiga: Unnecessary #include.
Solution:   Remove the #include. (Ola Söder, closes vim/vim#6908)
https://github.com/vim/vim/commit/33e3346322e40b2877f63f2f37398832c7017e2f

vim-patch:8.2.1648: Amiga: no common build file for Amiga (-like) systems

Problem:    Amiga: no common build file for Amiga (-like) systems.
Solution:   Turn Make_morph.mak into Make_ami.mak. (Ola Söder, closes vim/vim#6805)
https://github.com/vim/vim/commit/a62372be1f73b69f9d4c9413ec816d773a16a0f5

vim-patch:8.2.1649: GTK3: using old file chooser

Problem:    GTK3: using old file chooser.
Solution:   Use native file chooser on GTK 3.20 and above. (Yogeshwar
            Velingker, closes vim/vim#6909)
https://github.com/vim/vim/commit/3e4cc9671c5551b73f0176cab40e676ed72a1716

vim-patch:8.2.1654: when job writes to hidden buffer current window is wrong

Problem:    When job writes to hidden buffer current window has display
            errors.  (Johnny McArthur)
Solution:   Use aucmd_prepbuf() instead of switch_to_win_for_buf().
            (closes vim/vim#6925)
https://github.com/vim/vim/commit/ad9ec5e79916d206fd7677b77e36485c47ae534f

vim-patch:8.2.1655: cannot build with Strawberry Perl 5.32.0

Problem:    Cannot build with Strawberry Perl 5.32.0.
Solution:   Use Perl_sv_2pvbyte_flags. (closes vim/vim#6921)
https://github.com/vim/vim/commit/895a7a472d2eb4413e63cdad3213cb1ef1633458

vim-patch:8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addresses

Problem:    Cannot connect to 127.0.0.1 for host with only IPv6 addresses.
Solution:   pass AI_V4MAPPED flag to getaddrinfo. (Filipe Brandenburger,
            closes vim/vim#6931)
https://github.com/vim/vim/commit/c6a67c92bcbf4ef09063814af0c65d3e0585ada0
2020-09-11 18:34:25 -04:00
Jan Edmund Lazo 2ab6ec9e48 vim-patch:8.1.1297: invalid argument test fails without GTK
Problem:    Invalid argument test fails without GTK.
Solution:   Test -display and --display separately.
https://github.com/vim/vim/commit/240f7abab01b5e3fd5336dd780e42501ec3f2fcb
2020-09-11 18:23:47 -04:00
Jan Edmund Lazo 978dd99f45 vim-patch:8.1.1296: crash when using invalid command line argument
Problem:    Crash when using invalid command line argument.
Solution:   Check for options not being initialized.
https://github.com/vim/vim/commit/27821260c0afaac85cb1c10627f1d7fbe48860ae
2020-09-11 18:23:46 -04:00
Björn Linse 997147e4bb Merge pull request #12889 from vigoux/bytetrack-open-line
Fix invalid events with `o` `<CR>` and `autoindent`
2020-09-11 19:30:46 +02:00
Thomas Vigouroux a8f71676a1 fix(bufupdates): avoid sending empty updates 2020-09-11 14:48:10 +02:00
Thomas Vigouroux f0e258cf85 fix(bytetrack): send correct events when opening lines
a bit of test cleanup

ärrår

feeel

SPLIT

fix: sned correct updates on <CR>
2020-09-11 14:38:58 +02:00
Aufar Gilbran 466ff35dfd vim-patch:8.1.0552: saved last search pattern may not be restored
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran f7d2e37e36 vim-patch:8.1.0399: 'hlsearch' highlight remains in other window
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran 112092fa15 vim-patch:8.1.0392: error while typing :/foo/s// with 'incsearch' enabled
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran b0042cafc0 vim-patch:8.1.0356: using :s with 'incsearch' prevents CTRL-R CTRL-W
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran e2dc2a6bd7 vim-patch:8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search pattern
Problem:    'incsearch' for :/foo/s//<Esc> changes last search pattern.
Solution:   Save the last search pattern earlier.
https://github.com/vim/vim/commit/198cb66d652d3d8ac16226dcc929a11b0b720151
2020-09-11 10:37:52 +08:00
Aufar Gilbran b59c293c25 vim-patch:8.1.0339: wrong highlight when 'incsearch' set and cancelling :s
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran f2743cfb65 vim-patch:8.1.0321: 'incsearch' regression: /\v highlights everything
Problem:    'incsearch' regression: /\v highlights everything.
Solution:   Put back the empty_pattern() check.
https://github.com/vim/vim/commit/4edfe2d2a2d70ea66a7f73e9b923c2d1f6246a57
2020-09-11 10:37:52 +08:00
Aufar Gilbran 4770a2bac5 vim-patch:8.1.0320: too much 'incsearch' highlight for pat matching everything
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran 5f5d08a88e vim-patch:8.1.0296: command parsing for 'incsearch' is a bit ugly
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
2020-09-11 10:37:52 +08:00
Aufar Gilbran 77bb48e740 vim-patch:8.1.0295: no 'incsearch' highlighting for :vimgrep and similar
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
2020-09-11 10:33:20 +08:00
Aufar Gilbran ab7e101540 vim-patch:8.1.0291: 'incsearch' highlighting not used for :sort
Problem:    'incsearch' highlighting not used for :sort.
Solution:   Handle pattern in :sort command.
https://github.com/vim/vim/commit/81f56536b1bc324eb173924a8cf4d7dbbf4f3fdb
2020-09-11 10:33:20 +08:00
Aufar Gilbran c0102c140c vim-patch:8.1.0286: 'incsearch' does not apply to :smagic and :snomagic
Problem:    'incsearch' does not apply to :smagic and :snomagic.
Solution:   Add support. (Hirohito Higashi)
https://github.com/vim/vim/commit/167ae42685dcd430800c51ac7339f7f0938a3e70
2020-09-11 10:33:20 +08:00