Skip to content

Commit d61fc69

Browse files
authored
Merge pull request #1327 from wiktor-obrebski/refactor/text-area-to-widgets
Refactor `gui/journal` text editor to dedicated `TextArea` widget
2 parents bbad80a + df6b940 commit d61fc69

File tree

4 files changed

+10
-3434
lines changed

4 files changed

+10
-3434
lines changed

gui/journal.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local gui = require 'gui'
55
local widgets = require 'gui.widgets'
66
local utils = require 'utils'
77
local json = require 'json'
8-
local text_editor = reqscript('internal/journal/text_editor')
98
local shifter = reqscript('internal/journal/shifter')
109
local table_of_contents = reqscript('internal/journal/table_of_contents')
1110

@@ -113,7 +112,7 @@ function JournalWindow:init()
113112
interior_b=true,
114113
frame_style_t=false,
115114
},
116-
text_editor.TextEditor{
115+
widgets.TextArea{
117116
view_id='journal_editor',
118117
frame={t=1, b=3, l=25, r=0},
119118
resize_min={w=30, h=10},

0 commit comments

Comments
 (0)