diff --git a/.github/workflows/flowy_editor_test.yml b/.github/workflows/flowy_editor_test.yml index 520f64b09b894..8809bad3280d1 100644 --- a/.github/workflows/flowy_editor_test.yml +++ b/.github/workflows/flowy_editor_test.yml @@ -5,18 +5,15 @@ on: branches: - "main" - "codecov" - paths: - - "frontend/app_flowy/packages/appflowy_editor" pull_request: branches: - "main" - paths: - - "frontend/app_flowy/packages/appflowy_editor" env: CARGO_TERM_COLOR: always + jobs: tests: strategy: @@ -39,7 +36,7 @@ jobs: run: | flutter pub get flutter test --coverage - + curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov ./codecov diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/document/position.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/document/position.dart index cea065fdea1f9..e8d684c599b6d 100644 --- a/frontend/app_flowy/packages/appflowy_editor/lib/src/document/position.dart +++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/document/position.dart @@ -14,6 +14,7 @@ class Position { if (other is! Position) { return false; } + return pathEquals(path, other.path) && offset == other.offset; }