Mercurial > octave-libgccjit
comparison libgui/src/m-editor/file-editor.cc @ 17941:9799a996b2c1
* file-editor.cc (request_open_file): new edit tab when file name is empty
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 16 Nov 2013 20:38:34 +0100 |
parents | 752f6b358754 |
children | d62570cfbab9 |
comparison
equal
deleted
inserted
replaced
17940:b3e4ee8f4d6d | 17941:9799a996b2c1 |
---|---|
272 if (call_custom_editor (openFileName, line)) | 272 if (call_custom_editor (openFileName, line)) |
273 return; // custom editor called | 273 return; // custom editor called |
274 | 274 |
275 if (openFileName.isEmpty ()) | 275 if (openFileName.isEmpty ()) |
276 { | 276 { |
277 // ?? Not sure this will happen. This routine isn't even called | 277 // This happens if edit is calles without an argument |
278 // if the user hasn't selected a file. | 278 // Open eitor with empty edit area instead (as new file would do) |
279 request_new_file (""); | |
279 } | 280 } |
280 else | 281 else |
281 { | 282 { |
282 // Have all file editor tabs signal what their file names are. | 283 // Have all file editor tabs signal what their file names are. |
283 editor_tab_map.clear (); | 284 editor_tab_map.clear (); |