VitaliyRodnenko/geeknote — pull request #78 by joemilbourn (2012-08-14 10:02:22+00:00)
Title: Fix for precedence of editor selection

Hardcoded default editor settings took precedence over those defined in the user environment. Re-ordered if statements in editor.py to change priority from (high = 1, low =4):

1. `storage.getUserProp('editor')`
2. `config.DEFAULT_{WIN,UNIX}_EDITOR`
3. `os.environ('editor')`
4. `os.environ.get('EDITOR')`

to

1. `storage.getUserProp('editor')`
3. `os.environ('editor')`
4. `os.environ.get('EDITOR')`
2. `config.DEFAULT_{WIN,UNIX}_EDITOR`