G -> переход в конец файла

master
serr 2025-02-04 21:30:06 +03:00
parent b043994381
commit 41c04b1dbf
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ class VimModel:
case "gg": # Переход в начало файла case "gg": # Переход в начало файла
self.currentLine = 0 self.currentLine = 0
self.currentCol = 0 self.currentCol = 0
case "G": # Переход в конец файла
self.currentLine = len(self.displayBuffer) - 1
self.currentCol = len(self.displayBuffer[self.currentLine])
return ReturnCode.GOOD return ReturnCode.GOOD
def Enter(self) -> None: def Enter(self) -> None: