Sure. Although the check in getNumLinesWithWrapWidth should handle that, no? It will recalculate the cache if width != cached_numlines_width.