Skip to content

Commit

Permalink
bugfix: return value from get_uri() must be unquoted
Browse files Browse the repository at this point in the history
Thanks to soiamso for finding this!
  • Loading branch information
oliver committed Oct 11, 2009
1 parent 59888c1 commit ab7f2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file-search.py
Expand Up @@ -718,7 +718,7 @@ def openSearchDialog (self, searchText = None):
# otherwise, try to use directory of that file
currFileDir = self._window.get_active_tab().get_document().get_uri()
if currFileDir != None and currFileDir.startswith("file:///"):
searchDir = os.path.dirname(currFileDir[7:])
searchDir = urllib.unquote(os.path.dirname(currFileDir[7:]))
else:
# there's no file open => fall back to Gedit's current working dir
pass
Expand Down

0 comments on commit ab7f2b4

Please sign in to comment.