Fix highlighting and navigation in narrowed buffers