-# or the above code if you have to spare ink
-# value = ((len(self.parent.value) * ("%0" + str(self.parent.vals[1]) + "d" + self.parent.vals[0]))[0:-1]) % tuple(self.parent.value)
- value = value[0:mPos] + "_" + value[mPos + 1:]
- return ("text", value)
+
+ # only mark cursor when we are selected
+ # (this code is heavily ink optimized!)
+ return ("mtext"[1-selected:], value, [mPos])