intero.nvim icon indicating copy to clipboard operation
intero.nvim copied to clipboard

InteroType strips away last char

Open DavsX opened this issue 8 years ago • 2 comments

When I select a function/code manually and call InteroType, the last letter of the selection is removed. The issue is in here with the '- 2' at the end. There is an updated version of this code snippet here: http://stackoverflow.com/a/6271254

In the current version to make it behave correctly I need to select the function and the next char.

DavsX avatar Jun 05 '16 07:06 DavsX

Yeah, that was intended, but probably wrong... I'll fix this soon

valpackett avatar Jun 05 '16 10:06 valpackett

Ohhh, so that's why goto und uses weren't working. I do wonder, though - what made you decide to do it like this? :D

If you can, it would be great if goto and uses worked even if you just hover over the word, but I suppose I can just make my binding viw:InteroGoto<CR> or something. For the time being, I guess I'll just add an l in there.

Xandaros avatar Jun 08 '16 10:06 Xandaros