mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
parent
6b7c04b421
commit
299ba2fe97
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ func NewBufferFromFileAtLoc(path string, btype BufType, cursorLoc Loc) (*Buffer,
|
|||
|
||||
file, err := os.Open(filename)
|
||||
fileInfo, serr := os.Stat(filename)
|
||||
if serr != nil {
|
||||
if serr != nil && !os.IsNotExist(serr) {
|
||||
return nil, serr
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue