From c7226e304f3a6ae0f2318134dd48cf52297ad67c Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 4 Feb 2025 22:10:38 +0300 Subject: [PATCH] =?UTF-8?q?dd=20->=20=D0=B2=D1=8B=D1=80=D0=B5=D0=B7=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D1=83=D1=8E=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=BA=D1=83?= 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 a0e6d8e..7faf052 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -114,6 +114,9 @@ class VimModel: del self.displayBuffer[self.currentLine][self.currentCol + 1] case "yy": # копирует текущую строку self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + case "dd": # вырезает текущую строку + self.exchangeBuffer = self.displayBuffer[self.currentLine].copy() + del self.displayBuffer[self.currentLine] case "p": # вставить после курсора self.displayBuffer[self.currentLine][self.currentCol+1:self.currentCol+1] = self.exchangeBuffer