aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-04 09:52:49 -0400
committerMichael <[email protected]>2017-07-04 09:52:49 -0400
commit3e65bf26fd69ed5cd9ed9c49b20ab5182c098430 (patch)
tree4f3b0d26fba385bf6080db01ccfaa9bc73345276 /ShiftOS.Frontend/GUI
parentd23c5cc29dc47537d1cf6069f27009750fd80919 (diff)
downloadshiftos_thereturn-3e65bf26fd69ed5cd9ed9c49b20ab5182c098430.tar.gz
shiftos_thereturn-3e65bf26fd69ed5cd9ed9c49b20ab5182c098430.tar.bz2
shiftos_thereturn-3e65bf26fd69ed5cd9ed9c49b20ab5182c098430.zip
Port over the Terminal
Diffstat (limited to 'ShiftOS.Frontend/GUI')
-rw-r--r--ShiftOS.Frontend/GUI/TextInput.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ShiftOS.Frontend/GUI/TextInput.cs b/ShiftOS.Frontend/GUI/TextInput.cs
index c4e5260..13ee596 100644
--- a/ShiftOS.Frontend/GUI/TextInput.cs
+++ b/ShiftOS.Frontend/GUI/TextInput.cs
@@ -32,9 +32,7 @@ namespace ShiftOS.Frontend.GUI
_index = 0;
return;
}
- _index = MathHelper.Clamp(value, 0, _text.Length - 1);
- if (_text[_index] == '\n')
- _index++;
+ _index = MathHelper.Clamp(value, 0, _text.Length);
Invalidate();
}
}