micro
micro copied to clipboard
basename option doesn't work with Windows backslash paths
Description of the problem or steps to reproduce
-
> set basename true - Open any file outside of the current directory, using backslash paths
Specifications
Commit hash: 6bc498e6 OS: Windows 10 Terminal: Windows Console
I have fixed it with my own build of micro.
In file "./micro/internal/buffer/buffer.go:
- At line 12, comment out '"path"' (from the import section)
- At line 472, changed "path" to "filepath", resulting in
return filepath.Base(name)
Build your own micro, with make build.
If you don't have make for Windows, check this out:
http://gnuwin32.sourceforge.net/packages/make.htm
Official build guide: https://github.com/zyedidia/micro#building-from-source