]> git.lizzy.rs Git - micro.git/commit
Allows opening files using full path on Windows (#1126)
authorDimitar Borislavov Tasev <dimtasev@gmail.com>
Sun, 3 Jun 2018 21:13:03 +0000 (22:13 +0100)
committerZachary Yedidia <zyedidia@gmail.com>
Sun, 3 Jun 2018 21:13:03 +0000 (17:13 -0400)
commitefe343b37c56524eb398d5b4abe5964ec0fc709b
treebfe4acaede2a3bcab98054d50be3e70e8539756e
parentd7f7d845b93e8f75fafccc4de41e2b309fa99fa8
Allows opening files using full path on Windows (#1126)

* Now can open Windows full-path from command line arg

Example that now works: micro.exe D:\myfile.txt

* Now correctly retrieves the path from the input path string. Except for single-letter filenames

* Fixed line/cols, need to make the code prettier

* Fixed path matching with regex by @Pariador

* Fixed not stripping the line/col args from file path

* Added tests for ParseCursorLocation
cmd/micro/buffer.go
cmd/micro/util.go
cmd/micro/util_test.go