Start in the current directory rather than EXEDIR

This changes the behavior when `lite` is started without arguments,
e.g. from a terminal. Rather than showing `lite` installation
directory, it shows current directory, removing the need to
start `lite` as `lite .`.
This commit is contained in:
Alexander Krotov 2021-01-26 23:36:50 +03:00
parent 38bd9b3326
commit 54e832bcfe
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ function core.init()
CommandView = require "core.commandview"
Doc = require "core.doc"
local project_dir = EXEDIR
local project_dir = "."
local files = {}
for i = 2, #ARGS do
local info = system.get_file_info(ARGS[i]) or {}