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
Simon Van Casteren
VuhDo
Commits
0170ffea
Commit
0170ffea
authored
3 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Safer handling in text providers
parent
2e62d0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
VuhDoTextProviders.lua
VuhDoTextProviders.lua
+4
-0
No files found.
VuhDoTextProviders.lua
View file @
0170ffea
...
...
@@ -173,6 +173,8 @@ local function VUHDO_kiloValidator(anInfo, aValue)
if
aValue
>
100
then
return
VUHDO_round
(
aValue
*
0
.
001
,
1
)
or
""
;
else
return
""
;
end
end
...
...
@@ -186,6 +188,8 @@ local function VUHDO_plusKiloValidator(anInfo, aValue)
return
format
(
"+%.1fk"
,
VUHDO_round
(
aValue
*
0
.
001
,
1
))
or
""
;
elseif
aValue
>
0
then
return
format
(
"+%d"
,
aValue
)
or
""
;
else
return
""
;
end
end
...
...
This diff is collapsed.
Click to expand it.
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