Fork me on GitHub
#vim
<
2019-09-04
>
vaalha22:09:27

@dominicm Here you go! That took entirely too long to figure out.

vaalha22:09:11

I mean, it ostensibly took 20 minutes. And 12 hours to figure out that <C-U> is really needed there.

😂 4
walterl22:09:50

What is the role of the <C-U> in that context? :thinking_face:

vaalha22:09:20

basically, I was getting a different result from running getpos in that function depending on how it was called

walterl22:09:09

Interesting! I would not have made the connection to getpos 👍

dominicm05:09:14

This might be worth contributing to vim-sexp

lxsli14:09:38

My understanding of the <C-U> is that when you use : from visual mode, it puts :'<,'> automatically

lxsli14:09:44

Check :func-range too