Dieser Commit ist enthalten in:
Ursprung
36151e3a46
Commit
118b258244
@ -147,8 +147,8 @@ public class ScriptEditScreen extends Screen {
|
||||
boolean hasSelection = savedCursorY != -1 && savedCursorX != -1;
|
||||
int minSelectionY = Math.min(cursorY, savedCursorY);
|
||||
int maxSelectionY = Math.max(cursorY, savedCursorY);
|
||||
int minSelectionX = minSelectionY == cursorY ? cursorX : savedCursorX;
|
||||
int maxSelectionX = maxSelectionY == cursorY ? cursorX : savedCursorX;
|
||||
int minSelectionX = (minSelectionY == maxSelectionY ? Math.min(cursorX, savedCursorX) : (minSelectionY == cursorY ? cursorX : savedCursorX));
|
||||
int maxSelectionX = (minSelectionY == maxSelectionY ? Math.max(cursorX, savedCursorX) : (maxSelectionY == cursorY ? cursorX : savedCursorX));
|
||||
|
||||
int lineNumberText = scroll + 1;
|
||||
MutableInt lineNumber = new MutableInt();
|
||||
@ -369,8 +369,8 @@ public class ScriptEditScreen extends Screen {
|
||||
}
|
||||
int minSelectionY = Math.min(savedCursorY, cursorY);
|
||||
int maxSelectionY = Math.max(savedCursorY, cursorY);
|
||||
int minSelectionX = minSelectionY == cursorY ? cursorX : savedCursorX;
|
||||
int maxSelectionX = maxSelectionY == cursorY ? cursorX : savedCursorX;
|
||||
int minSelectionX = (minSelectionY == maxSelectionY ? Math.min(cursorX, savedCursorX) : (minSelectionY == cursorY ? cursorX : savedCursorX));
|
||||
int maxSelectionX = (minSelectionY == maxSelectionY ? Math.max(cursorX, savedCursorX) : (maxSelectionY == cursorY ? cursorX : savedCursorX));
|
||||
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (int i = minSelectionY; i <= maxSelectionY; i++) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren