andrejv/wxmaxima — pull request #242 by DemiReticent (2013-01-08 08:28:22+00:00)
Title: Issue232: m_console focus after loading WXMX file from command line

From #232.

In Linux (at least) when loading a WXMX file from the command line, the focus is not set on m_console, and a user is unable to type in the editor without first clicking it to give it focus, and is unable interact with any prompts which are issued by Maxima after doing Ctrl+R or Ctrl+Shift+R (this bug was found while testing the Ctrl+Shift+R functionality).

There did not seem to be a problem with loading WXM files, but the HCaret is not set as when a file is loaded from the File->Open... dialog, which is what I thought the original issue was. For consistency, I am correcting this so that loading both kinds of files from the command line results in the cursor being in the same place as if the files had been loaded from the dialog.

---

Test files:
https://dl.dropbox.com/u/11334386/wxmaxima/issue232.wxmx
https://dl.dropbox.com/u/11334386/wxmaxima/issue232.wxm