Skip to content

Commit

Permalink
fix deprecation and CI not firing on PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Mar 1, 2024
1 parent 7ba1a28 commit 758f333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Check
env:
CARGO_TERM_COLOR: always
on:
push
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ fn console_key_pressed(keyboard_input: &KeyboardInput, configured_keys: &[KeyCod

fn set_cursor_pos(ctx: &Context, id: Id, pos: usize) {
if let Some(mut state) = TextEdit::load_state(ctx, id) {
state.set_ccursor_range(Some(CCursorRange::one(CCursor::new(pos))));
state
.cursor
.set_char_range(Some(CCursorRange::one(CCursor::new(pos))));
state.store(ctx, id);
}
}
Expand Down

0 comments on commit 758f333

Please sign in to comment.