Closed baco closed 4 years ago
I don't regularly use mouse selection so I didn't even notice this; but upon testing I can confirm neovim-gtk is in fact selecting only by word when using the mouse.
Yes, this is a show-stopper
Well, I wouldn't call it a "show-stopper", but it is definitely a little inconvenient and clumsy.
I tried to figure out where this happens, but neither neovim-gtk, nor neovim-lib have usable documentation.
Fix is in PR.
Having set
:set mouse=a
on Neovim'sinit.vim
file turns on visual selection for both Neovim and Neovim-GTK UI; but selection behaves differently when selecting on the Neovim TUI and on Neovim-GTK GUI.For example, suppose we have the text:
on Neovim TUI, I can start a mouse selection at the first
s
occurrence and and end it at the secondo
occurrence, having effectively selectedsum do
.on Neovim-GTK GUI I can not make the same selection. When starting the selection the starting point automatically displaces to the start of the word
ipsum
and when reaching the end of selection it is forced the end point to the end of the worddolor
, having effectively selectedipsum dolor
.The desired/expected behavior is the first one, having the possibility to make arbitrary selections.
Technical information: