Compare commits
3 Commits
5d39b4ae68
...
f053ecde04
Author | SHA1 | Date |
---|---|---|
George Sokianos | f053ecde04 | |
George Sokianos | 98711e1cb5 | |
George Sokianos | b15bcbd397 |
|
@ -38,10 +38,10 @@ LiteXL: $(LiteXL_OBJ)
|
||||||
@echo "Compiling $<"
|
@echo "Compiling $<"
|
||||||
@$(compiler) -c $< -o $*.o $(CFLAGS) $(INCPATH) $(DFLAGS)
|
@$(compiler) -c $< -o $*.o $(CFLAGS) $(INCPATH) $(DFLAGS)
|
||||||
|
|
||||||
src/dirmonitor.o: src/dirmonitor.c src/platform/amigaos4.h
|
src/dirmonitor.o: src/dirmonitor.c src/platform/morphos.h
|
||||||
|
|
||||||
src/main.o: src/main.c src/api/api.h src/rencache.h \
|
src/main.o: src/main.c src/api/api.h src/rencache.h \
|
||||||
src/renderer.h src/platform/amigaos4.h src/dirmonitor.h
|
src/renderer.h src/platform/morphos.h src/dirmonitor.h
|
||||||
|
|
||||||
src/rencache.o: src/rencache.c
|
src/rencache.o: src/rencache.c
|
||||||
|
|
||||||
|
|
16
Makefile.os4
16
Makefile.os4
|
@ -14,14 +14,20 @@ outfile := lite
|
||||||
compiler := gcc
|
compiler := gcc
|
||||||
cxxcompiler := g++
|
cxxcompiler := g++
|
||||||
|
|
||||||
INCPATH := -Isrc -Ilib/dmon -I/sdk/local/newlib/include/SDL2 -I/sdk/local/common/include/freetype2
|
INCPATH := -Isrc -Ilib/dmon -I/sdk/local/newlib/include/SDL2 \
|
||||||
|
-I/sdk/local/common/include/lua52 -I/sdk/local/common/include/freetype2
|
||||||
|
|
||||||
DFLAGS := -D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR
|
DFLAGS := -D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR
|
||||||
# -DLITE_USE_SDL_RENDERER
|
# -DLITE_USE_SDL_RENDERER
|
||||||
# -Wextra -Wall
|
# -Wextra -Wall
|
||||||
CFLAGS := -Werror -Wwrite-strings -O3 -g -std=gnu11 -fno-strict-aliasing
|
|
||||||
|
CFLAGS := -Werror -Wwrite-strings -O2 -g -gstabs -std=gnu11 -fno-strict-aliasing
|
||||||
# "-gstabs -finstrument-functions -fno-inline -DPROFILING"
|
# "-gstabs -finstrument-functions -fno-inline -DPROFILING"
|
||||||
LFLAGS := -mcrt=newlib -static-libgcc -static-libstdc++ -lauto -lpcre2 -lSDL2 -llua -lagg -lfreetype -lm -lunix -lpthread -athread=native
|
|
||||||
# " -lprofyle"
|
LFLAGS := -mcrt=newlib -static-libgcc -static-libstdc++ -lauto \
|
||||||
|
-lpcre2 -lSDL2 -llua52 -lagg -lfreetype -lz -lm \
|
||||||
|
-lpthread -athread=native -gstabs
|
||||||
|
# -lprofyle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +41,7 @@ clean:
|
||||||
|
|
||||||
LiteXL: $(LiteXL_OBJ)
|
LiteXL: $(LiteXL_OBJ)
|
||||||
@echo "Linking LiteXL"
|
@echo "Linking LiteXL"
|
||||||
@$(cxxcompiler) -o $(outfile) $(LiteXL_OBJ) $(LFLAGS)
|
@$(compiler) -o $(outfile) $(LiteXL_OBJ) $(LFLAGS)
|
||||||
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
|
|
|
@ -197,11 +197,20 @@ https://git.walkero.gr/walkero/lite-xl/issues
|
||||||
|
|
||||||
## [2.0.3r3] - future
|
## [2.0.3r3] - future
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed non existing path crashes on OS4
|
- Fixed non existing path crashes on OS4 and MorphOS
|
||||||
- Fixed editor refresh whenever init.lua is changed, no matter the working
|
- Fixed editor refresh whenever init.lua is changed, no matter the working
|
||||||
folder
|
folder
|
||||||
- Fixed an issue when the user added a directory in the project that
|
- Fixed an issue when the user added a directory in the project that
|
||||||
already existed
|
already existed
|
||||||
|
- Fixed locale issue on start for MorphOS. Now it should start just fine
|
||||||
|
no matter what locale the user has on his system.
|
||||||
|
- Fixed "Find" on MorphOS that was not working (shortcut CTRL+F)
|
||||||
|
- If the user selects to change the project folder and inserts Sys: or any
|
||||||
|
partition name, the included folders will be listed as suggestions
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Removed linking with unix on OS4 build
|
||||||
|
- Makefiles updated
|
||||||
|
|
||||||
## [2.0.3r2] - 2022-06-18
|
## [2.0.3r2] - 2022-06-18
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -55,7 +55,7 @@ end
|
||||||
local function find(label, search_fn)
|
local function find(label, search_fn)
|
||||||
last_view, last_sel = core.active_view,
|
last_view, last_sel = core.active_view,
|
||||||
{ core.active_view.doc:get_selection() }
|
{ core.active_view.doc:get_selection() }
|
||||||
local text = last_view.doc:get_text(unpack(last_sel))
|
local text = last_view.doc:get_text(table.unpack(last_sel))
|
||||||
found_expression = false
|
found_expression = false
|
||||||
|
|
||||||
core.command_view:set_text(text, true)
|
core.command_view:set_text(text, true)
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
local common = {}
|
local common = {}
|
||||||
|
|
||||||
local mos = PLATFORM == "MORPHOS"
|
|
||||||
|
|
||||||
function common.is_utf8_cont(s, offset)
|
function common.is_utf8_cont(s, offset)
|
||||||
local byte = s:byte(offset or 1)
|
local byte = s:byte(offset or 1)
|
||||||
return byte >= 0x80 and byte < 0xc0
|
return byte >= 0x80 and byte < 0xc0
|
||||||
|
@ -59,14 +57,7 @@ function common.color(str)
|
||||||
r = (f() or 0)
|
r = (f() or 0)
|
||||||
g = (f() or 0)
|
g = (f() or 0)
|
||||||
b = (f() or 0)
|
b = (f() or 0)
|
||||||
if mos then
|
a = (f() or 1) * 0xff
|
||||||
a = (f() or "1.0"):gsub("%.", ",") * 0xff -- This is necessary for Lua 5.2 on MOS
|
|
||||||
-- having issues with float numbers having
|
|
||||||
-- a dot instead of comma
|
|
||||||
else
|
|
||||||
a = (f() or 1) * 0xff
|
|
||||||
end
|
|
||||||
|
|
||||||
else
|
else
|
||||||
error(string.format("bad color string '%s'", str))
|
error(string.format("bad color string '%s'", str))
|
||||||
end
|
end
|
||||||
|
@ -141,7 +132,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
function common.path_suggest(text)
|
function common.path_suggest(text)
|
||||||
local path, name = text:match("^(.-)([^/\\]*)$")
|
local path, name = text:match("^(.-)([^:/\\]*)$")
|
||||||
local files = system.list_dir(path == "" and "." or path) or {}
|
local files = system.list_dir(path == "" and "." or path) or {}
|
||||||
local res = {}
|
local res = {}
|
||||||
for _, file in ipairs(files) do
|
for _, file in ipairs(files) do
|
||||||
|
@ -161,7 +152,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
function common.dir_path_suggest(text)
|
function common.dir_path_suggest(text)
|
||||||
local path, name = text:match("^(.-)([^/\\]*)$")
|
local path, name = text:match("^(.-)([^:/\\]*)$")
|
||||||
local files = system.list_dir(path == "" and "." or path) or {}
|
local files = system.list_dir(path == "" and "." or path) or {}
|
||||||
local res = {}
|
local res = {}
|
||||||
for _, file in ipairs(files) do
|
for _, file in ipairs(files) do
|
||||||
|
@ -176,7 +167,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
function common.dir_list_suggest(text, dir_list)
|
function common.dir_list_suggest(text, dir_list)
|
||||||
local path, name = text:match("^(.-)([^/\\]*)$")
|
local path, name = text:match("^(.-)([^:/\\]*)$")
|
||||||
local res = {}
|
local res = {}
|
||||||
for _, dir_path in ipairs(dir_list) do
|
for _, dir_path in ipairs(dir_list) do
|
||||||
if dir_path:lower():find(text:lower(), nil, true) == 1 then
|
if dir_path:lower():find(text:lower(), nil, true) == 1 then
|
||||||
|
@ -245,7 +236,7 @@ end
|
||||||
|
|
||||||
-- can return nil if there is no directory part in the path
|
-- can return nil if there is no directory part in the path
|
||||||
function common.dirname(path)
|
function common.dirname(path)
|
||||||
return path:match("(.+)[\\/][^\\/]+$")
|
return path:match("(.+)[:\\/][^\\/]+$")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -272,6 +263,9 @@ end
|
||||||
|
|
||||||
|
|
||||||
function common.home_expand(text)
|
function common.home_expand(text)
|
||||||
|
if text == nil then
|
||||||
|
return HOME
|
||||||
|
end
|
||||||
return HOME and text:gsub("^~", HOME) or text
|
return HOME and text:gsub("^~", HOME) or text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue