dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.45k stars 662 forks source link

[Bug] Multiple Line Mode don't work in neovim terminal #579

Open hiberabyss opened 6 years ago

hiberabyss commented 6 years ago

When I paste following sql lines into mycli which runs within neovim terminal, only the first line executed:

set @id = 148448756;
select * from lt_asset
where id = @id
limit 10;

image

mycli version: 1.16.0 neovim version: v0.2.3-568-gdc5362958

meeuw commented 6 years ago

hmm it might be caused by a compatibility issue with prompt_toolkit's bracketed-paste and neovim. I'm not a neovim user, I'd really like to know how you're sending the upper buffer to the neovim terminal bottom buttom.

hiberabyss commented 6 years ago

@meeuw , just copy buffer content into system clipboard, and then paste in the neovim terminal.

amjith commented 6 years ago

@hiberabyss I'm able to reproduce it. We rely on prompt-toolkit to handle copy/paste.

It might be useful to file the bug there, simply because we're not in a position to find a solution for this.

hiberabyss commented 6 years ago

Thanks for your reply, I have created a new issue in prompt-toolkit.