fmoralesc / pastie

a simple *nix clipboard manager with application-indicator support
46 stars 7 forks source link

Crashed if the history contains the path starting with / #14

Closed sachebotarev closed 14 years ago

sachebotarev commented 14 years ago

"/media/file/".split("/") -> ["", "media","file",""]

pastie/pastielib/history.py 127-128: for d in range(last): path_list[d] = path_list[d][0] Replace for d in range(last): try: path_list[d] = path_list[d][0] except IndexError: pass

fmoralesc commented 14 years ago

I confirm the issue. I'll check ASAP.

fmoralesc commented 14 years ago

Solved. Releasing for 0.5.4.