1 ! Copyright (C) 2011 Anton Gorenko.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: kernel sequences ui.backend.gtk.input-methods
5 IN: ui.backend.gtk.input-methods.editors
7 M: editor support-input-methods? drop t ;
9 M: editor cursor-surrounding
10 dup editor-caret first2 [ swap editor-line ] dip ;
12 M: editor delete-cursor-surrounding
15 M: editor cursor-loc&dim
16 [ caret-loc ] [ caret-dim ] bi ;