From 6c80db924ea224f7f8df8f5989a67002fc0a2257 Mon Sep 17 00:00:00 2001 From: serr Date: Wed, 5 Feb 2025 01:26:37 +0300 Subject: [PATCH] =?UTF-8?q?wq!=20->=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20+=20=D0=B2=D1=8B=D0=B9=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvc/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mvc/models.py b/mvc/models.py index 1f7a31b..e033b6f 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -58,7 +58,10 @@ class VimModel: self.currentCol = 0 case "q": # Выход из программы return ReturnCode.EXIT_CODE - case "q!": + case "q!": # Выход без сохранения + return ReturnCode.EXIT_CODE + case "wq!": # Записать в текущий файл + выйти + self.SaveFile() return ReturnCode.EXIT_CODE case "i": # Вход в режим редактирования return ReturnCode.SET_EDIT_MODE