Sean Dewar and Simon Sobisch
92ef2b2bcd
vim-patch:2ae7ffe0bc3c
...
runtime(termdebug): add frame related commands (vim/vim#12511 )
implementing `:Frame`, `:Up` and `:Down'
https://github.com/vim/vim/commit/2ae7ffe0bc3c3ed9fcae35ef23a2b78908580201
Use maparg() for saving K as it's since been ported (and supports Lua callbacks
and the other API fields).
Use the 3 argument variant of mapset(), as the single argument one isn't ported
yet (v8.2.4861).
Co-authored-by: Simon Sobisch <simonsobisch@web.de >
2023-08-25 11:05:18 +01:00
Sean Dewar
8aad4b8425
fix(termdebug): send SIGINT when interrupting prompt mode
...
Unlike Vim's job_stop(), Nvim's jobstop() does not take a signal argument, and
always sends SIGTERM/KILL.
:Stop and Ctrl-C in prompt mode is supposed to interrupt the program like in
terminal mode, not kill GDB.
Also, maybe libuv's kill() works on Windows? If so, the logic above could be
removed, but I don't have a Windows machine available to test that.
Also "set nomodified" when ending prompt mode, like Vim (avoids E37).
2023-08-25 11:04:41 +01:00
Sean Dewar
21477bdb27
vim-patch:a76f3221cdcf
...
runtime(termdebug): Fix various Termdebug issues (vim/vim#12875 )
* Fix some Termdebug issues after vim/vim#12403
* Fix :Asm in Termdebug prompt mode
* Fix Termdebug s:DecodeMessage escaping logic
https://github.com/vim/vim/commit/a76f3221cdcfff6880213839de4d04cf0c7c60f8
Adjust disassembly message forwarding for Nvim, as its callback can receive
many lines at once.
Currently, just forward each disassembly line individually to s:CommOutput();
it's possible to do this in batch instead, but this is simpler.
I suggested moving to a GDB MI-based approach for the disassemble stuff
upstream, which should simplify the logic a lot if implemented (and possibly
allow for getting rid of the `&"disassemble ...` special-casing).
Also, correct "(gdb)" to include a trailing space; the stray GDB prompts were
being ignored by s:CommOutput() anyway, so this had caused no ill effects.
2023-08-25 11:01:09 +01:00
Sean Dewar
c413b42c45
fix(termdebug): prompt mode breaks with &splitbelow set
...
Unlike Vim, termopen() doesn't split, so you can't use the modifier like that.
Remove the fragile :wincmd shenanigans.
2023-08-25 10:59:57 +01:00
Sean Dewar
af78060b18
fix(termdebug): trim suffixed "\r" in CommOutput
...
Vim splits lines on "\r", then trims any prefixed "\n".
But in Nvim, job output lines are split on "\n" (like readfile() in binary
mode), so trim any suffixed "\r" instead.
This gets rid of the trailing "^M" character in messages parsed from the jobs.
2023-08-25 10:59:56 +01:00
Sean Dewar and Shane-XB-Qian
ec97128826
vim-patch:19968fc4ec2c
...
runtime(termdebug): re-indent lines (vim/vim#12857 )
https://github.com/vim/vim/commit/19968fc4ec2c36c7d528c7326acf43e5d663ba39
Co-authored-by: Shane-XB-Qian <shane.qian@foxmail.com >
2023-08-25 10:59:56 +01:00
Sean Dewar and Shane-XB-Qian
464472b4f7
vim-patch:f6fb52b667ee
...
runtime(termdebug): refactor error printing (vim/vim#12856 )
// vs not act like exception from vim or termdebug
https://github.com/vim/vim/commit/f6fb52b667eecb58bdd9b26bd462d5da61697cf7
Co-authored-by: Shane-XB-Qian <shane.qian@foxmail.com >
2023-08-25 10:59:56 +01:00
Sean Dewar and laburnumT
949dd14d8b
vim-patch:9f2962141514
...
Runtime(termdebug): Add support to view local and argument variables
closes: 12403
https://github.com/vim/vim/commit/9f29621415146abc046471440515e9e34f3e57a1
Rename the existing "s:running" (#16790 ) to "s:gdb_running" to not clash with
the "s:running" introduced in this patch (which instead relates to whether the
debugged program is currently running in gdb).
Keep the file `:retab`bed as before.
Co-authored-by: laburnumT <flo.striker@gmail.com >
2023-08-25 10:59:55 +01:00
zeertzjq and skywind3000
421c66f741
vim-patch:9.0.1671: Termdebug: error with more than 99 breakpoints ( #24194 )
...
Problem: Termdebug: error with more than 99 breakpoints.
Solution: Use a different sign for breakpoint 100 and over. (closes vim/vim#12589 ,
closes vim/vim#12588 )
https://github.com/vim/vim/commit/e7d9ca2b3bf99b0b759be8952e02c77110a354c1
Co-authored-by: skywind3000 <skywind3000@163.com >
2023-06-29 07:04:46 +08:00
zeertzjq and Christian Brabandt
e59cf3b3a9
vim-patch:9.0.1663: Termdebug on MS-Windows: some file names are not recognized ( #24145 )
...
Problem: Termdebug on MS-Windows: some file names are not recognized.
Solution: Do not always change \t and \n. (Christian Brabandt,
closes vim/vim#12565 , closes vim/vim#12560 , closes vim/vim#12550 )
https://github.com/vim/vim/commit/c9a4a8ab28da2b11856a3f08ccba2e91f46b85c3
Co-authored-by: Christian Brabandt <cb@256bit.org >
2023-06-25 08:12:41 +08:00
zeertzjq and Christian Brabandt
57fda7688b
vim-patch:9.0.1659: Termdebug: default highlight cleared if changing colorscheme ( #24139 )
...
Problem: Termdebug: default highlight cleared when changing colorscheme.
Solution: Use a ColorScheme autocommand. (Christian Brabandt, closes vim/vim#12566 ,
closes vim/vim#12555 )
https://github.com/vim/vim/commit/279de0cd1f58ea520826a3dd1c5562a71157b23b
Co-authored-by: Christian Brabandt <cb@256bit.org >
2023-06-24 22:14:57 +08:00
1fe1bb084d
refactor(options): deprecate nvim[_buf|_win]_[gs]et_option
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: famiu <famiuhaque@protonmail.com >
2023-05-21 15:14:01 +06:00
Christian Clason and Bram Moolenaar
e3f36377c1
vim-patch:71badf9547e8 ( #23285 )
...
Update runtime files
https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-23 15:22:55 +02:00
zeertzjq
e6d3f87dfd
fix(termdebug): handle partial lines passed to callback ( #22950 )
...
Problem:
Job callbacks in termdebug cannot handle partial lines.
Solution:
Add a wrapper function that handles partial lines and only passes full
lines to the real callback.
Fix #22929 .
2023-04-08 19:27:58 +08:00
Sean Dewar and Bram Moolenaar
7c57f06b63
vim-patch:partial:d13166e788fc ( #21109 )
...
Update runtime files
https://github.com/vim/vim/commit/d13166e788fcaef59ec65c20b46ca4be16625669
- Skip E1309-1311 (not ported).
- Skip `:echowindow` changes (not ported).
- Skip termdebug winbar doc changes (not fully ported).
- Port missing `g:termdebug_config.{wide,use_prompt}` changes from v8.2.5010.
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2022-11-19 10:31:51 +00:00
zeertzjq
0c6b39894f
feat(mapset): support restoring Lua callback ( #20024 )
...
vim-patch:9.0.0341: mapset() does not restore <Nop> mapping properly
Problem: mapset() does not restore <Nop> mapping properly.
Solution: Use an empty string for <Nop>. (closes vim/vim#11022 )
https://github.com/vim/vim/commit/92a3d20682d46359bb50a452b4f831659e799155
2022-09-01 06:19:49 +08:00
zeertzjq
a4801b8034
vim-patch:8.0.1562: the terminal debugger can't set a breakpoint with the mouse ( #19234 )
...
Problem: The terminal debugger can't set a breakpoint with the mouse.
Solution: Add popup menu entries.
https://github.com/vim/vim/commit/71137fed4d77e985d49ca32c79f030512767b8ce
This ports missing popup menu code to termdebug plugin.
Despite the commit message, the code is copied from latest Vim.
WinBar code is commented out and WinBar docs is not ported.
2022-07-05 20:57:01 +08:00
Christian Clason
42e8774317
vim-patch:e1dc76fbf333 ( #19092 )
...
Update runtime files
https://github.com/vim/vim/commit/e1dc76fbf333243ecfdfc3c0a81ea9984913b4f5
2022-06-25 21:56:51 +02:00
Christian Clason
c00a3f45d4
vim-patch:8cc5b559f700 ( #19066 )
...
Update runtime files
https://github.com/vim/vim/commit/8cc5b559f70041361612b8a6a87922503b33baa6
2022-06-23 15:57:51 +02:00
zeertzjq
ec48c6f236
vim-patch:8.2.5010: the terminal debugger uses various global variables
...
Problem: The terminal debugger uses various global variables.
Solution: Add a dictionary to hold the terminal debugger preferences.
https://github.com/vim/vim/commit/c9a431c7638ecebb6f2cb3eabd0e1b2b5e269c1e
Omit popup menu.
2022-05-26 07:47:00 +08:00
Christian Clason
e50b1fe60d
vim-patch:921bde888046 ( #18511 )
...
Update runtime files, translations
https://github.com/vim/vim/commit/921bde88804663a7cb825d7f7e8a5d8ae6b58650
skip: translations
skip: builtin.txt (requires 8.2.4861)
2022-05-10 10:55:33 +02:00
Sean Dewar
0d3f17a6c3
vim-patch:partial:d899e5112079 ( #18474 )
...
Update runtime files
https://github.com/vim/vim/commit/d899e51120798d3fb5420abb1f19dddf3f014d05
- Skip vimhelp.vim stuff (syntax/help.vim, syntax.txt; v8.2.4891).
- Skip :let heredoc eval stuff (eval.txt; v8.2.4770).
- Skip uk.cp1251.po.
- Skip `*hl-CurSearch*` change (syntax.txt):
- Vim's CurSearch works differently (Nvim's uses current cursor pos).
Dunno know how applicable the redrawing comment is to Nvim...
- Might be preferred to move it under `*hl-Search*` like Vim?
2022-05-08 10:15:36 +01:00
Christian Clason
0124a7bfa9
vim-patch:75ab590f8504 ( #18170 )
...
Update runtime files
https://github.com/vim/vim/commit/75ab590f8504a8912ca0b8c58f6b897bb7a34f07
omit builtin.txt change to `expand()` (depends on 8.2.4726)
2022-04-19 15:14:17 +02:00
Sean Dewar
315858bf67
fix(termdebug): handle exiting during startup properly ( #16790 )
...
s:EndTermDebug should only be called when exiting if the debugger started
without error, otherwise the plugin breaks.
Vim handles this by using job_setoptions to set the on_exit callback to
s:EndTermDebug after startup succeeds. However, Nvim does not have such
functionality; instead; use s:starting to mimic this behaviour.
Also, introduce s:running to fix s:CheckGdbRunning; it did not work correctly
due to the "[Process exited X]" message keeping the job's channel alive (though
the stream is closed). This means nvim_get_chan_info cannot be used to check if
the debugger has exited, as it may still return a non-empty dict.
2022-03-20 10:10:01 +00:00
Christian Clason
75157d2572
vim-patch:47c532e2bc55 ( #17780 )
...
Update runtime files
https://github.com/vim/vim/commit/47c532e2bc55e8a48f7f47e1fae1ed30144f2fa1
2022-03-20 10:48:10 +01:00
Christian Clason
4ba7fa1700
vim-patch:6f4754b9f725 ( #17179 )
...
Update runtime files
https://github.com/vim/vim/commit/6f4754b9f7253d7e4ba527064a24aff1acdb1e8f
2022-01-23 18:38:41 +01:00
Christian Clason
3906b2d4fc
vim-patch:fd31be29b822 ( #17114 )
...
Update runtime files
https://github.com/vim/vim/commit/fd31be29b8220ee1cb0b3460c82f2634ae3cc370
2022-01-17 11:58:36 +01:00
Christian Clason
e866da12ee
vim-patch:2f0936cb9a2e ( #17007 )
...
* vim-patch:2f0936cb9a2e
Update runtime files
https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b
2022-01-11 14:14:17 +01:00
Christian Clason
8c720f6b9d
vim-patch:partial fa3b72348d88 ( #16780 )
...
Update runtime files
https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
omit
doc/eval.txt (needs 8.2.3864)
doc/map.txt (needs 8.2.3619)
menu.vim (needs 8.2.0413)
2021-12-26 11:03:25 +01:00
Christian Clason
b1757e1c29
vim-patch:0e6adf8a29d5 ( #16682 )
...
Update runtime files
https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
2021-12-16 21:46:13 +01:00
Christian Clason
0a3826646f
vim-patch:4700398e384f ( #16538 )
...
Update runtime files
https://github.com/vim/vim/commit/4700398e384f38f752b432e187462f404b96847d
partial skip:
doc/sign.txt
doc/various.txt
doc/motion.txt
2021-12-06 13:55:38 +01:00
Christian Clason
03d250eb45
vim-patch:6304be625ce4 ( #16450 )
...
Update runtime files.
https://github.com/vim/vim/commit/6304be625ce44dcfedc6735164d0b853578581c8
skip doc/sign.txt (needs 8.2.3664)
2021-11-27 19:39:42 +01:00
Christian Clason
e6c46bac3f
vim-patch:88a4205f1cfb ( #16399 )
...
Update runtime files
https://github.com/vim/vim/commit/88a4205f1cfbdc328e987ab00521fc8a22447fc3
2021-11-22 10:53:57 +01:00
Christian Clason
c0efe49e78
vim-patch:519cc559b08b ( #16340 )
...
Update runtime files
https://github.com/vim/vim/commit/519cc559b08b800edc429688aece7ad6a00d41eb
2021-11-17 10:02:59 +01:00
Christian Clason
8cbe100fcc
vim-patch:partial 113cb513f76d ( #16260 )
...
Update runtime files
https://github.com/vim/vim/commit/113cb513f76d8866cbb6dc85fa18aded753e01da
skip doc/eval.txt
skip doc/insert.txt
skip doc/user_06.txt (needs 8.2.3562)
partial skip doc/syntax.txt (needs 8.2.3562)
2021-11-08 00:10:44 +01:00
ii14 and ii14
4d7dcbe49f
fix(termdebug): replace mapset with nvim_set_keymap ( #15699 )
...
Co-authored-by: ii14 <ii14@users.noreply.github.com >
2021-09-17 19:29:27 +02:00
Christian Clason
1a9d2a4040
vim-patch:89a9c159f23f #15641
...
Update runtime files
https://github.com/vim/vim/commit/89a9c159f23fb7b3e24e6d09068adfc24a73afcb
Omit:
nsis/lang/turkish.nsi
pixmaps/gen-inline-pixbufs.sh
doc/popup.txt
doc/terminal.txt
tutor/tutor*
src/[g]vimtutor
CONTRIBUTING.md
Skip:
doc/eval.txt (needs 8.1.2342)
doc/testing.txt (needs 8.2.0299)
2021-09-13 06:05:27 -07:00
Christian Clason
229effac9f
vim-patch:partial 6aa57295cfbe ( #15633 )
...
* vim-patch:partial 6aa57295cfbe
Update runtime files
https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404
omit doc/popup.txt
omit plugin/manpager.vim
partial skip runtime/doc/eval.txt (needs 8.2.{0258,0924,1544,2324,2468,2606})
skip ftplugin/julia.vim, indent/julia.vim, syntax/julia.vim (already
ported in
https://github.com/neovim/neovim/commit/65f32f0f195fbf7df2478f31cab345d00a6673a4 )
skip syntax/scala.vim (already ported in
https://github.com/neovim/neovim/commit/a92e83ac14a0a674bc5b4b1d06d6b6c9d0d20a10 )
2021-09-12 11:02:33 +02:00
Christian Clason
11289ad733
fix(termdebug): replace term_getline with getbufline #15598
...
Correct incomplete runtime file port in
https://github.com/neovim/neovim/commit/79cbbd5179d816a64989243cb1ce85b802a2896f
2021-09-08 07:35:40 -07:00
Christian Clason
79cbbd5179
vim-patch:d2ea7cf10a4d #15571
...
Update runtime files
https://github.com/vim/vim/commit/d2ea7cf10a4d026ebd402594d656af7d5c811c24
omit `runtime/doc/if_tcl.txt`
omit `runtime/doc/textprop.txt`
omit `runtime/tutor/*`
omit `runtime/syntax/vim.vim` (cherry-picked in https://github.com/neovim/neovim/commit/2dd7828511d04a8b7f1ac4331c719a751a5db869 )
manual merge of `runtime/pack/dist/opt/termdebug/plugin/termdebug.vim`
2021-09-08 07:24:12 -07:00
Jan Edmund Lazo
31ea80649d
vim-patch:3ec3217f0491
...
Update runtime files
https://github.com/vim/vim/commit/3ec3217f0491e9ba8aa8ea02f7e454cd19a287ef
Omit fuzzy-match in pattern.txt.
2021-05-25 22:11:04 -04:00
Jan Edmund Lazo
dd2bc06411
vim-patch:82be4849eed0
...
Update runtime files.
https://github.com/vim/vim/commit/82be4849eed0b8fbee45bc8da99b685ec89af59a
2021-05-01 23:19:57 -04:00
Jan Edmund Lazo
710f0eae2f
vim-patch:1b884a005398
...
Update runtime files.
https://github.com/vim/vim/commit/1b884a0053982335f644eec6c71027706bf3c522
Omit doc/autocmd.txt.
Omit tools/emoji_list.vim. Patch v8.2.1540 is not ported.
2021-05-01 22:29:03 -04:00
Jan Edmund Lazo
2ebd1f6286
vim-patch:3132cddd209e
...
Update runtime files
https://github.com/vim/vim/commit/3132cddd209ee510bde48b6520290cb26c8f604a
Omit :sort,sort() changes.
2021-05-01 22:29:02 -04:00
Jan Edmund Lazo
330500a5bf
vim-patch:cb80aa2d53e5
...
Update runtime files.
https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e
Omit runtime/doc/tabpage.txt.
Patch v8.2.1401 is not ported yet.
Port optwin.vim changes without gettext().
Patch v8.2.1544 is not ported yet.
2021-05-01 22:29:02 -04:00
Jan Edmund Lazo
0a0034718c
vim-patch:2547aa930b59
...
Update runtime files.
https://github.com/vim/vim/commit/2547aa930b59f5e2bcb70e81d5a57ed461e59b4f
Omit modifyOtherKeys, vim9, vim.man.
2021-04-29 09:27:19 -04:00
Jan Edmund Lazo
df2acdc3be
vim-patch:65e0d77a66b7
...
Update runtime files
https://github.com/vim/vim/commit/65e0d77a66b7e50beb562ad554ace46c32ef8f0f
Omit usr_46.txt because of vim9.
2021-04-28 21:57:50 -04:00
Jan Edmund Lazo
65821cc1b9
vim-patch:388a5d4f20b4
...
Update runtime files
https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892
Omit vim9.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
e257aff016
vim-patch:bc93cebb692f
...
Update runtime files.
https://github.com/vim/vim/commit/bc93cebb692f47488d66f078d1728031e9be35e7
2021-04-27 09:21:35 -04:00
Jan Edmund Lazo
62adc04f08
vim-patch:469bdbde1e8e
...
Minor runtime file updates.
https://github.com/vim/vim/commit/469bdbde1e8ea8110705327ab193acca79296742
2021-04-27 09:21:32 -04:00