From e1a47bcb37017b26b88c1265da6d8454211f032f Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 4 Feb 2025 21:35:14 +0300 Subject: [PATCH] =?UTF-8?q?x=20->=20=D1=83=D0=B4=D0=B0=D0=BB=D1=8F=D0=B5?= =?UTF-8?q?=D1=82=20=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=20=D0=BA=D1=83=D1=80=D1=81=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvc/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mvc/models.py b/mvc/models.py index 03e52af..e6b2b64 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -102,6 +102,9 @@ class VimModel: case "G": # Переход в конец файла self.currentLine = len(self.displayBuffer) - 1 self.currentCol = len(self.displayBuffer[self.currentLine]) + case "x": # Удаляет символ после курсора + if self.currentCol + 1 < len(self.displayBuffer[self.currentLine]): + del self.displayBuffer[self.currentLine][self.currentCol + 1] return ReturnCode.GOOD def Enter(self) -> None: