1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 11:12:19 -08:00

Report both sides of the region to the input method upon setup

* java/org/gnu/emacs/EmacsNative.java (getSelection): Return
array of ints.
* java/org/gnu/emacs/EmacsView.java (onCreateInputConnection):
Adjust accordingly.
* src/androidterm.c (struct android_get_selection_context): New
field `mark'.
(android_get_selection): Set the mark field as appropriate.
(getSelection): Adjust accordingly.
This commit is contained in:
Po Lu 2023-02-19 19:56:51 +08:00
parent 0aa19e993b
commit 0998ab3ade
3 changed files with 38 additions and 11 deletions

View file

@ -205,7 +205,7 @@ public class EmacsNative
/* Return the current value of the selection, or -1 upon
failure. */
public static native int getSelection (short window);
public static native int[] getSelection (short window);
static
{