Minor fixes

This commit is contained in:
hajdam
2025-08-30 20:25:55 +02:00
parent bec6f94b5f
commit d671bf7446
4 changed files with 5 additions and 5 deletions
@@ -31,7 +31,7 @@ import org.exbin.bined.android.capability.BasicColorsCapable;
import org.exbin.bined.android.capability.FontCapable;
/**
* Code area component default interface.
* Code area default component interface.
*
* @author ExBin Project (https://exbin.org)
*/
@@ -79,7 +79,7 @@ public class DefaultCodeAreaCharAssessor implements CodeAreaCharAssessor {
@Override
public char getPreviewCharacter(long rowDataPosition, int byteOnRow, int charOnRow, CodeAreaSection section) {
if (byteOnRow > rowData.length - maxBytesPerChar) {
if (byteOnRow > rowData.length - maxBytesPerChar || rowDataPosition >= dataSize) {
return ' ';
}
@@ -844,7 +844,7 @@ public class DefaultCodeAreaCommandHandler implements CodeAreaCommandHandler {
if (!caretPosition.equals(movePosition)) {
((CaretCapable) codeArea).setActiveCaretPosition(movePosition);
updateSelection(selectingMode, movePosition);
} else if (selectingMode == SelectingMode.NONE){
} else if (selectingMode == SelectingMode.NONE) {
clearSelection();
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.12.0' apply false
id 'com.android.library' version '8.12.0' apply false
id 'com.android.application' version '8.12.2' apply false
id 'com.android.library' version '8.12.2' apply false
}
task clean(type: Delete) {