mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Changed size and length to camel case.
This commit is contained in:
@@ -148,7 +148,7 @@ namespace Terminal.Gui {
|
|||||||
TextChanged?.Invoke (oldText);
|
TextChanged?.Invoke (oldText);
|
||||||
|
|
||||||
if (point > text.Count) {
|
if (point > text.Count) {
|
||||||
point = Math.Max (DisplaySize (text, 0).Size - 1, 0);
|
point = Math.Max (DisplaySize (text, 0).size - 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Adjust ();
|
Adjust ();
|
||||||
@@ -242,7 +242,7 @@ namespace Terminal.Gui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns the size and length in a range of the string.
|
// Returns the size and length in a range of the string.
|
||||||
(int Size, int Length) DisplaySize (List<Rune> t, int start = -1, int end = -1, bool checkNextRune = true)
|
(int size, int length) DisplaySize (List<Rune> t, int start = -1, int end = -1, bool checkNextRune = true)
|
||||||
{
|
{
|
||||||
if (t == null || t.Count == 0) {
|
if (t == null || t.Count == 0) {
|
||||||
return (0, 0);
|
return (0, 0);
|
||||||
@@ -269,7 +269,7 @@ namespace Terminal.Gui {
|
|||||||
if (point < first) {
|
if (point < first) {
|
||||||
first = point;
|
first = point;
|
||||||
} else if (first + point - (Frame.Width + offB) == 0 ||
|
} else if (first + point - (Frame.Width + offB) == 0 ||
|
||||||
DisplaySize (text, first, point).Size >= Frame.Width + offB) {
|
DisplaySize (text, first, point).size >= Frame.Width + offB) {
|
||||||
first = Math.Max (CalculateFirst (text, first, point, Frame.Width - 1 + offB), 0);
|
first = Math.Max (CalculateFirst (text, first, point, Frame.Width - 1 + offB), 0);
|
||||||
}
|
}
|
||||||
SetNeedsDisplay ();
|
SetNeedsDisplay ();
|
||||||
|
|||||||
Reference in New Issue
Block a user