From f67703719bcb115423c23e01646dd0112aa26583 Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 4 Feb 2025 23:15:40 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D1=8B=20.copy()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvc/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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": # Вставить после курсора