kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
710 stars 48 forks source link

Special characters muck up the results view #16

Closed artfulrobot closed 1 year ago

artfulrobot commented 1 year ago

See screenshot as an example:

image

The more characters like this the more the table becomes unreadable.

I think a solution would be to calculate the width that vim will need to display the values and use that as column width; instead of what I presume is just a length-of-characters-in-string function?

kndndrj commented 1 year ago

Hmm this is probably an issue with go-pretty. Still needs some investigation.

kndndrj commented 1 year ago

Hey, @artfulrobot I looked into this and unfortunately, I think this is the issue with terminal emulator displaying some byte sequences as 2-character wide symbol.

You can try copying this sequence to command line and see if it persists. You can also try pressing ctrl-v and then ctrl-l to see if this is the case outside vim.