Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
ee960802
Commit
ee960802
authored
Jun 07, 2021
by
Rob Swindell
💬
Browse files
Use K_TRIM mode flag with getstr() through-out.
parent
47e8ce8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
exec/str_cmds.js
exec/str_cmds.js
+3
-3
No files found.
exec/str_cmds.js
View file @
ee960802
...
...
@@ -656,7 +656,7 @@ function str_cmds(str)
str
=
str
.
replace
(
/^
\s
+/
,
""
);
if
(
str
==
""
)
{
write
(
"
\r\n
Path 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\n
Path 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment