Editing via status window passes relative path to editor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Explorer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If a file is modified in the working tree the main area of the explorer window (status area?) will list it under modified. Clicking on the file opens the default editor or that defined for that extensions in one of the editors.conf files. Explorer passes only the relative path of the file (from the branch root) to the editor. In my case, depending on the editor, the file will fail to open.
To reproduce:
1. Enable Diagnostic Mode under view menu
2. Modify a file in the working tree
3. Refresh the status area
4. Click on the modified file in the status area
5. Note that the parameter is the relative path
Note that this does not occur when using the edit button in the working tree pane which passes the full path.
I had a look through the code for bzr-explorer and came up with a simple fix which will pass the full/absolute path to the file to the editor. Not sure if this is the best way to address the issue or whether the patch is in the right format.
Lovely, thanks for the fix