If width != cached_numlines_width, better play it safe and set cached_numlines_width to -1 instead of updating it (here and anywhere else it's updated).