Skip to content

Commit

Permalink
more delete line changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Aug 21, 2017
1 parent e6a481c commit d2147b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -18,6 +18,8 @@
(for [Issue #687](https://github.com/pbek/QOwnNotes/issues/687))
- added more French, Italian, German, Chinese and Spanish translation
(thank you bepolymathe, mlocati, rakekniven, enyie and richarson)
- the `Delete line` function now *pulls the text from the bottom up*
(for [Issue #432](https://github.com/pbek/QOwnNotes/issues/432))

## 17.08.6
- if you want to remote control QOwnNotes with sockets you can use `WebSocketServer` in a script
Expand Down
5 changes: 4 additions & 1 deletion src/mainwindow.cpp
Expand Up @@ -9026,8 +9026,11 @@ void MainWindow::on_actionDelete_line_triggered() {
cursor.deletePreviousChar();
} else {
// remove the text in the current line
cursor.insertText("\n");
cursor.removeSelectedText();
}

cursor.movePosition(QTextCursor::NextBlock);
textEdit->setTextCursor(cursor);
}

/**
Expand Down

0 comments on commit d2147b0

Please sign in to comment.