diff options
author | Marius Kintel <marius@kintel.net> | 2013-11-30 17:11:58 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-11-30 17:11:58 (GMT) |
commit | 961c380c840882da246aad1c30928f106aea8747 (patch) | |
tree | 0f95851e9aa974d156272631562820dd9a206a65 /src/mainwin.cc | |
parent | de2db22b5f82855b9cf42829c4dde3b4bd231273 (diff) | |
parent | afe1fbcb53ff286b2f6efdb99efb6ed9947304f9 (diff) |
Merge pull request #553 from Gazer/editor_improvements
Keep cursor position on save
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 5b986b1..1ad8bc8 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -504,6 +504,7 @@ MainWindow::openFile(const QString &new_filename) } #endif setFileName(actual_filename); + editor->setPlainText(""); fileChangedOnDisk(); // force cached autoReloadId to update refreshDocument(); |