aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorMatthew Hughes <matthewhughes934@gmail.com>2026-04-28 15:13:56 +0100
committerGitHub <noreply@github.com>2026-04-28 10:13:56 -0400
commitc06e3d6f819e1284a8290a254f5f6860793cfdcd (patch)
tree63e70611a73144cc8464c4506344403a6bd78c20 /runtime/lua/vim/provider/python.lua
parent45c5cbb4c5e42851b0ddb122207b40e4d309b2af (diff)
downloadrneovim-c06e3d6f819e1284a8290a254f5f6860793cfdcd.tar.gz
rneovim-c06e3d6f819e1284a8290a254f5f6860793cfdcd.tar.bz2
rneovim-c06e3d6f819e1284a8290a254f5f6860793cfdcd.zip
fix(termdebug): evaluate display with gdb pretty print #39453
Calling `set print pretty on` in GDB will: > Cause GDB to print structures in an indented format with one member per line However, `termdebug` just renders the newlines as raw `\n` characters. This is a regression of[1]. Glancing through the history it looks to have been caused by cd1b14f027f375a9de17fdf106016470f52035f7 which removed the output splitting when displaying the eval results, so this changes adds that behaviour back. As a quick reproduction/test, compile the following C program: ```c struct Foo { char *name; }; int main(void) { struct Foo f = {"hello"}; printf("%s\n", f.name); return 0; } ``` Then launch `nvim` and run: :Termdebug main :Gdb (gdb) set print pretty on (gdb) break main (gdb) run :Source Place the cursor on the `f` variable and call `:Evaluate`. Before this change: ![](https://github.com/user-attachments/assets/51318e1e-9cdd-43ab-aa35-4aaad1d9f65f) With this change: ![](https://github.com/user-attachments/assets/33874679-21b4-4d07-98ef-c2c9e9d19dd6) Link: https://github.com/neovim/neovim/issues/10020 [1]
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions