From 41c04b1dbf00784362ac29694a0d5025903ebc58 Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 4 Feb 2025 21:30:06 +0300 Subject: [PATCH] =?UTF-8?q?G=20->=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D0=B5=D1=86=20=D1=84=D0=B0?= =?UTF-8?q?=D0=B9=D0=BB=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 227ceb5..03e52af 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -99,6 +99,9 @@ class VimModel: case "gg": # Переход в начало файла self.currentLine = 0 self.currentCol = 0 + case "G": # Переход в конец файла + self.currentLine = len(self.displayBuffer) - 1 + self.currentCol = len(self.displayBuffer[self.currentLine]) return ReturnCode.GOOD def Enter(self) -> None: