Fix bug #15841 with cache-long-scans, linum-mode, and non-ASCII chars.