]> gitweb.factorcode.org Git - factor.git/commitdiff
Minor fix for caret scroll to
authorslava <slava@factorcode.org>
Fri, 29 Sep 2006 23:01:08 +0000 (23:01 +0000)
committerslava <slava@factorcode.org>
Fri, 29 Sep 2006 23:01:08 +0000 (23:01 +0000)
library/ui/text/editor.factor

index 1ebb8e5e1a9b56c81c8fe7684d442fbb05609edd..285f36b1ca5fa77f5b453497e8778c18fbeac8a9 100644 (file)
@@ -116,7 +116,7 @@ M: editor model-changed
     rot first rot line>y 2array ;
 
 : caret-dim ( editor -- dim )
-    line-height 0 swap 2array ;
+    line-height 1 swap 2array ;
 
 : caret-rect ( editor -- dim )
     dup caret-loc swap caret-dim <rect> ;