Skip to content
Snippets Groups Projects
Commit ee960802 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use K_TRIM mode flag with getstr() through-out.

parent 47e8ce8a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -656,7 +656,7 @@ function str_cmds(str)
str=str.replace(/^\s+/,"");
if(str=="") {
write("\r\nPath and filename: ");
str=console.getstr("",60);
str=console.getstr("", 60, K_TRIM);
if(str=="")
return;
}
......@@ -680,7 +680,7 @@ function str_cmds(str)
str=str.replace(/^\s+/,"");
if(str=="") {
write("\r\nPath and filename: ");
str=console.getstr("",60);
str=console.getstr("", 60, K_TRIM);
if(str=="")
return;
}
......@@ -858,7 +858,7 @@ function get_arg(str, parm, history)
str=str.replace(/^\s+/,"");
if(str=="") {
write(format("%s: ", parm));
str=console.getstr(128, K_MSG, history);
str=console.getstr(128, K_MSG | K_TRIM, history);
}
if(str) {
var i = history.indexOf(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment