Update cached variable, because range might get collapsed.
Tests: Selecting table cell.
Changelog entry.
Merge branch 't/7975'