From e40ae4bfef698a747cb9f8200f4756938dba06e9 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 2 Dec 2022 23:10:47 +0100 Subject: [PATCH] Removed python specific paste() code --- src/source_base.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/source_base.cpp b/src/source_base.cpp index b004d16..4d81863 100644 --- a/src/source_base.cpp +++ b/src/source_base.cpp @@ -1044,17 +1044,6 @@ void Source::BaseView::paste() { first_paste_line_has_tabs = true; paste_line_tabs = tabs; } - else if(language_id == "python") { // Special case for Python code where the first line ends with ':' - char last_char = 0; - for(auto &chr : line) { - if(chr != ' ' && chr != '\t') - last_char = chr; - } - if(last_char == ':') { - first_paste_line_has_tabs = true; - paste_line_tabs = tabs; - } - } first_paste_line = false; } else if(!empty_line)