Skip to content

Commit

Permalink
[input-] fix typo #2082
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 30, 2023
1 parent 4329e11 commit dadab78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def editText(vd, y, x, w, record=True, display=True, **kwargs):
starting_value = kwargs['value']
if isinstance(starting_value, (int, float)) and v[-1] == '%': #2082
pct = float(v[:-1])
v = pct*value/100
v = pct*starting_value/100

v = type(starting_value)(v)

Expand Down

0 comments on commit dadab78

Please sign in to comment.