Tuesday merger of bf-blender into orange branch.
[blender-staging.git] / source / blender / src / interface.c
index 106286648b97531ae2d4687aac02624e53f8fdf5..7333f1aabfa43a901583a07fdefe4881231bdfd8 100644 (file)
@@ -1671,7 +1671,8 @@ static int ui_do_but_TEX(uiBut *but)
                else if(dev==MOUSEY) val= 0;
 
                if(ascii) {
-                       if(len <= but->max) {
+                       
+                       if(len-SELWIDTH+1 <= but->max) {
 
                                /* type over the current selection */
                                if (SELWIDTH > 0) {