Commit f63d953c authored by Marcello Massaro's avatar Marcello Massaro Committed by Christoph Cullmann

Use proper method to get first line

parent 01dfda17
......@@ -341,7 +341,7 @@ void KateConsole::slotRun()
// The string that should be output to terminal, upon acceptance
QString output_str;
// Set prefix first
QString first_line = document->textLines(KTextEditor::Range(0, 0, 1, 0)).first();
QString first_line = document->line(0);
QString shebang = QString::fromLatin1("#!");
if (first_line.startsWith(shebang)) {
// If there's a shebang, respect it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment