Diffusion Kate e3ece7bd45d2

Reuse unmodified empty document instead of closing it

Authored by croick on Nov 15 2017, 10:45 PM.

Description

Reuse unmodified empty document instead of closing it

Summary:

  • In VI-Mode, using :e filename or :tabe filename in the empty unmodified initial document makes Kate crash. The caller is deleted by closing the document.
  • Reusing the already opened document avoids the problem.

Test Plan: - use :e filename in VI-Mode from a fresh kate instance

Reviewers: Kate, cullmann

Reviewed By: Kate, cullmann

Subscribers: cullmann

Tags: Kate

Differential Revision: https://phabricator.kde.org/D8713

Details