micro icon indicating copy to clipboard operation
micro copied to clipboard

util: Fix opening filenames including colons with `parsecursor`

Open JoeKar opened this issue 1 year ago • 2 comments

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

JoeKar avatar Jan 15 '24 21:01 JoeKar

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".

JoeKar avatar Jan 15 '24 21:01 JoeKar

The macos build simply failed by builder timeout. Nothing special, just needs a kick...

JoeKar avatar Jan 30 '24 20:01 JoeKar