Mercurial > octave
changeset 24562:5a10409695b7
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).
author | Rik <rik@octave.org> |
---|---|
date | Mon, 08 Jan 2018 16:13:27 -0800 |
parents | 06e22134d81a |
children | 8f2c479eb125 |
files | libgui/src/external-editor-interface.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 ())