Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryphe committed Dec 17, 2018
2 parents fe7ca5d + 92fa194 commit e935459
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion browser/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ export const start = async (args: string[]): Promise<void> => {
arg => (path.isAbsolute(arg) ? arg : path.join(currentWorkingDirectory, arg)),
)

const filesToOpen = normalizedFiles.filter(f => fs.existsSync(f) && fs.statSync(f).isFile())
const filesToOpen = normalizedFiles.filter(f => {
if (fs.existsSync(f)) {
return fs.statSync(f).isFile()
} else {
return true
}
})
const foldersToOpen = normalizedFiles.filter(
f => fs.existsSync(f) && fs.statSync(f).isDirectory(),
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "",
"email": "bryphe@outlook.com",
"homepage": "https://www.onivim.io",
"version": "0.3.8",
"version": "0.3.9",
"description": "Code editor with a modern twist on modal editing - powered by neovim.",
"keywords": [
"vim",
Expand Down

0 comments on commit e935459

Please sign in to comment.