# HG changeset patch # User Rik # Date 1515456807 28800 # Node ID 5a10409695b7505042b5d8b8cd76e8840858cdaf # Parent 06e22134d81ac70dc120155f396822d78adb7ccc Open GUI external editor at beginning of file (bug #52811). * external-editor-interface.cc (call_custom_editor ): If line number is not set (-1) then use line of 0 (beginning of file). diff -r 06e22134d81a -r 5a10409695b7 libgui/src/external-editor-interface.cc --- a/libgui/src/external-editor-interface.cc Mon Jan 08 12:25:44 2018 -0800 +++ b/libgui/src/external-editor-interface.cc Mon Jan 08 16:13:27 2018 -0800 @@ -41,6 +41,8 @@ { if (line > -1) // check for a specific line (debugging) return true; // yes: do not open a file in external editor + else + line = 0; // no: start external editor at beginning of file QString editor = external_editor (); if (editor.isEmpty ())