Auto-commit after successful build: update app gameplay/UI

Changed files:\napp/src/main/java/com/kawomi/githugandroid/GitHugApp.kt
This commit is contained in:
Joe Tretter
2026-04-22 08:44:10 -05:00
parent 0736c54a38
commit abf042ae65

View File

@@ -153,6 +153,8 @@ fun GitHugApp() {
val raw = commandInput.text.trim()
if (raw.isBlank()) return
commandInput = TextFieldValue("")
if (commandHistory.lastOrNull() != raw) {
commandHistory = commandHistory + raw
}
@@ -189,7 +191,6 @@ fun GitHugApp() {
} else {
repo = newRepo
output = newOutput
commandInput = TextFieldValue("")
}
}
@@ -421,7 +422,7 @@ private fun SpecialKeyBar(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
TerminalKeyButton(label = "TAB", onClick = onTab, modifier = Modifier.weight(1.3f))
TerminalKeyButton(label = "", onClick = onTab, modifier = Modifier.weight(1.3f))
TerminalKeyButton(label = "", onClick = onCursorLeft)
TerminalKeyButton(label = "", onClick = onCursorRight)
TerminalKeyButton(label = "", onClick = onHistoryUp)