Skip to content

Commit

Permalink
chore: bump version to 0.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemoe committed Feb 8, 2024
1 parent e88467d commit 329c7c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build-logic/convention/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
@SuppressWarnings("unused")
object Versions {
// Project versions
private const val version = "0.23.0"
const val versionCode = 81
private const val version = "0.23.1"
const val versionCode = 82

val versionName by lazy {
if (CI.isCiBuild) {
Expand Down
6 changes: 3 additions & 3 deletions editor/src/main/java/io/github/rosemoe/sora/text/Content.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ public boolean isValidPosition(@Nullable CharPosition position) {
int line = position.line, column = position.column, index = position.index;
lock(false);
try {
if (position.line < 0 || position.line >= getLineCount()) {
if (line < 0 || line >= getLineCount()) {
return false;
}
ContentLine text = getLine(line);
if (position.column > text.length() + text.getLineSeparator().getLength() || position.column < 0) {
if (column > text.length() + text.getLineSeparator().getLength() || column < 0) {
return false;
}
return getIndexer().getCharIndex(line, column) == position.index;
return getIndexer().getCharIndex(line, column) == index;
} finally {
unlock(false);
}
Expand Down

0 comments on commit 329c7c7

Please sign in to comment.