Sometimes caret offset is reported as -1....
Sometimes caret offset is reported as -1....

... sometimes it is 1 bigger than the editor size.

fsharp/xamarin-monodevelop-fsharp-addin,fsharp/xamarin-monodevelop-fsharp-addin