Editing via status window passes relative path to editor

Bug #836631 reported by Ryan Haigh
6
This bug affects 1 person
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.

Related branches

Revision history for this message
Ryan Haigh (ryanhaigh) wrote :
Revision history for this message
Jonathan Riddell (jr) wrote :

Lovely, thanks for the fix

Changed in bzr-explorer:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.