Skip to content

Commit 64af1a4

Browse files
committed
add window title and start cursor at end of string
1 parent 03c8e9a commit 64af1a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notes.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ function NoteManager:init()
162162
widgets.Window{
163163
frame={w=35,h=20},
164164
frame_inset={t=1},
165+
frame_title='Notes',
165166
resizable=true,
166167
subviews={
167168
widgets.HotkeyLabel {
@@ -176,7 +177,7 @@ function NoteManager:init()
176177
frame={t=1,h=3},
177178
frame_style=gui.FRAME_INTERIOR,
178179
init_text=self.note and self.note.point.name or '',
179-
init_cursor=1,
180+
init_cursor=self.note and #self.note.point.name+1 or 1,
180181
one_line_mode=true
181182
},
182183
widgets.HotkeyLabel {

0 commit comments

Comments
 (0)