Fix view management bugs

Fixes for

BUG: 465807 BUG: 465808 BUG: 465811

All three are in separate commits with a test for each bug added to the KateViewManagementTests.

Merge request reports

Loading