diff --git a/src/source_base.cpp b/src/source_base.cpp index e4a973f..7178c31 100644 --- a/src/source_base.cpp +++ b/src/source_base.cpp @@ -1051,6 +1051,12 @@ void Source::BaseView::paste() { first_paste_line_has_tabs = true; paste_line_tabs = tabs; } + else if(language_id == "python") { + if(!line.empty() && line.back() == ':') { + first_paste_line_has_tabs = true; + paste_line_tabs = tabs; + } + } first_paste_line = false; } else if(!empty_line)