- if (prompt)
+ if (prompt) {
+ shorten_prompt(&prompt);
write_on_views (plugin, prompt, strlen (prompt));
+ }
else
This seems to drop the special handling of the bullets == 0 case. Sorry if my comments were unclear, I do believe that we still need to handle that case specially. Testing with the patch as-is, I never see the first line of the cryptsetup prompt.
@@ -363,16 +384,16 @@
strlen (CLEAR_ LINE_SEQUENCE) ); SPLASH_ DISPLAY_ PASSWORD_ ENTRY;
plugin->state = PLY_BOOT_
- if (prompt) prompt( &prompt) ;
prompt,
strlen (prompt));
+ if (prompt) {
+ shorten_
write_on_views (plugin,
+ }
else
This seems to drop the special handling of the bullets == 0 case. Sorry if my comments were unclear, I do believe that we still need to handle that case specially. Testing with the patch as-is, I never see the first line of the cryptsetup prompt.