micro
micro copied to clipboard
util: Fix opening filenames including colons with `parsecursor`
The regex pattern shall search for the end of the filename first as it does while opening with +LINE:COL.
In https://github.com/zyedidia/micro/blob/master/cmd/micro/micro.go#L172 we check for the end of the string as well.
Fixes #3118
Unfortunately the root cause of #1650 still applies in the moment parsecursor
is active and the file is called e.g. file:123
or file:123:321
respective ends with :NUMBER
.
It's arguable a problem in the moment valid file names are parsed and become "invalid".
The macos build simply failed by builder timeout. Nothing special, just needs a kick...