Bug 349500

Summary: Quit command behaves strangely and might cause crash in vi mode
Product: [Applications] kate Reporter: Michael <sexymimi64>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael 2015-06-22 15:20:28 UTC
When using the vi mode, the 'quit' command (:q) doesn't work as expected.

Reproducible: Always

Steps to Reproduce:
1. Open a spit view
2. Enable vi input
3. Type `:q`

Actual Results:  
The text area from the split disappear, but not the split itself (leaving a big empty area in the window). The file isn't closed.

Expected Results:  
The split should be closed entirely. The file should be closed as well.

Closing the remaining split view after the text area has disappeared sometimes causes crashes.
When no split views are opened, the behavior is a little bit different, but it still doesn't work (namely, the file isn't closed, and something weird happens to the view).
Comment 1 Christoph Cullmann 2017-07-24 07:57:00 UTC
Git commit f4185bd55e9596b14507037a49a717c572050d4e by Christoph Cullmann.
Committed on 24/07/2017 at 07:55.
Pushed by cullmann into branch 'master'.

fix issue with :q
:q did lead to not supported state that a viewspace had zero views

M  +29   -3    kate/kateviewmanager.cpp

https://commits.kde.org/kate/f4185bd55e9596b14507037a49a717c572050d4e