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: