Hide the caret if we don't have focus
parent
473348b3dc
commit
402a102fa4
|
@ -129,9 +129,11 @@ M: loc-monitor model-changed ( obj -- )
|
||||||
control-self relayout ;
|
control-self relayout ;
|
||||||
|
|
||||||
: draw-caret ( -- )
|
: draw-caret ( -- )
|
||||||
editor get
|
editor get editor-focused? [
|
||||||
dup editor-caret-color gl-color
|
editor get
|
||||||
caret-rect rect-extent gl-line ;
|
dup editor-caret-color gl-color
|
||||||
|
caret-rect rect-extent gl-line
|
||||||
|
] when ;
|
||||||
|
|
||||||
: translate-lines ( n editor -- )
|
: translate-lines ( n editor -- )
|
||||||
line-height * 0.0 swap 0.0 glTranslated ;
|
line-height * 0.0 swap 0.0 glTranslated ;
|
||||||
|
|
Loading…
Reference in New Issue