We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89bb10 commit edf9801Copy full SHA for edf9801
app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt
@@ -705,7 +705,9 @@ open class EditorHandlerActivity :
705
editorViewModel.areFilesModified = hasUnsaved
706
707
// set tab as unmodified
708
- val tab = content.tabs.getTabAt(index) ?: return@withContext
+ val tabPosition = getTabPositionForFileIndex(index)
709
+ if (tabPosition < 0) return@withContext
710
+ val tab = content.tabs.getTabAt(tabPosition) ?: return@withContext
711
val text = tab.text?.toString() ?: return@withContext
712
if (text.startsWith('*')) {
713
tab.text = text.substring(1)
0 commit comments