Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Dec 31, 2019
1 parent dd768fe commit 659195a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/platform_impl/macos/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,10 @@ extern "C" fn reset_cursor_rects(this: &Object, _sel: Sel) {
}
}

extern "C" fn has_marked_text(this: &Object, _sel: Sel) -> BOOL {
unsafe {
trace!("Triggered `hasMarkedText`");
let marked_text: id = *this.get_ivar("markedText");
trace!("Completed `hasMarkedText`");
(marked_text.length() > 0) as i8
}
extern "C" fn has_marked_text(_this: &Object, _sel: Sel) -> BOOL {
trace!("Triggered `hasMarkedText`");
trace!("Completed `hasMarkedText`");
YES
}

extern "C" fn marked_range(this: &Object, _sel: Sel) -> NSRange {
Expand Down

0 comments on commit 659195a

Please sign in to comment.