mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +08:00
terminal-view: fix array indexing
This commit is contained in:
@@ -1547,8 +1547,8 @@ public final class TerminalView extends View {
|
||||
};
|
||||
|
||||
propsFile = new File(possiblePropLocations[0]);
|
||||
int i = 1;
|
||||
while (!propsFile.exists() && i <= possiblePropLocations.length) {
|
||||
int i = 0;
|
||||
while (!propsFile.exists() && i < possiblePropLocations.length) {
|
||||
propsFile = new File(possiblePropLocations[i]);
|
||||
i += 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user