diff --git a/mvc/models.py b/mvc/models.py index 170eb52..253a00a 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -113,7 +113,7 @@ class VimModel: if self.currentCol + 1 < len(self.displayBuffer[self.currentLine]): del self.displayBuffer[self.currentLine][self.currentCol + 1] case "yy": # копирует текущую строку - self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + self.exchangeBuffer = self.displayBuffer[self.currentLine] case "yw": # Копирует слово под курсором start_index, end_index = self.WordUnderCursor() line = self.displayBuffer[self.currentLine] @@ -126,7 +126,7 @@ class VimModel: self.displayBuffer[self.currentLine] = line[:start_index] + line[end_index:] self.currentCol = start_index case "dd": # Вырезает текущую строку - self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + self.exchangeBuffer = self.displayBuffer[self.currentLine] self.displayBuffer[self.currentLine] = [] self.currentCol = 0 case "p": # Вставить после курсора