You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type a command to see its help text here. Hit ENTER
313
-
to run the command, or Shift-ENTER to run the
314
-
command and close this dialog. The dialog also
315
-
closes automatically if you run a command that shows
316
-
a new GUI screen.
312
+
Type a command to see its help text here. Hit ENTER to run the command, or Shift-ENTER to run the command and close this dialog. The dialog also closes automatically if you run a command that shows a new GUI screen.
317
313
318
-
Not sure what to do? Run the "help" command to get
319
-
started!
314
+
Not sure what to do? Run the "help" command to get started!
320
315
321
-
To see help for this command launcher, type
322
-
"launcher" and hit the TAB key or click on
323
-
"gui/launcher" to autocomplete.]]
316
+
To see help for this command launcher, type "launcher" and hit the TAB key or click on "gui/launcher" to autocomplete.]]
324
317
325
318
functionHelpPanel:init()
326
-
self.cur_entry=""
319
+
self.cur_entry=''
327
320
328
321
self:addviews{
329
322
widgets.WrappedLabel{
330
323
view_id='help_label',
331
-
frame={l=0, t=0},
324
+
frame={l=1, t=0, b=1},
332
325
auto_height=false,
333
326
scroll_keys={
334
327
A_MOVE_N_DOWN=-1, -- Ctrl-Up
@@ -340,11 +333,14 @@ function HelpPanel:init()
340
333
}
341
334
end
342
335
343
-
functionHelpPanel:set_help(help_text)
336
+
functionHelpPanel:set_help(help_text, in_layout)
344
337
locallabel=self.subviews.help_label
345
338
label.text_to_wrap=help_text
346
-
label:postComputeFrame()
347
-
label:updateLayout() -- to update the scroll arrows after rewrapping text
339
+
ifnotin_layoutthen
340
+
self.cur_entry=''
341
+
label:postComputeFrame()
342
+
label:updateLayout() -- update the scroll arrows after rewrapping text
343
+
end
348
344
end
349
345
350
346
functionHelpPanel:set_entry(entry_name)
@@ -354,8 +350,16 @@ function HelpPanel:set_entry(entry_name)
0 commit comments