Branch: Tag:

2016-08-19

2016-08-19 09:23:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

MasterObject: describe_string() now shows some of the end of the string.

3927:    t = 0;    }    clipped++; -  if(maxlen>10) -  return sprintf("%q+[%d]",m[..maxlen-5],sizeof(m)-(maxlen-5)); +  if(maxlen>10) { +  int h = (3*maxlen)/4; +  return sprintf("%q+[%d]+%q", +  m[..h-5], +  sizeof(m)-(maxlen-8), +  m[sizeof(m) - (maxlen - (h + 4))..]); +  }       return "string["+sizeof(m)+"]";    }