mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
ui: simplify geteditor
Now $EDITOR and $VISUAL will affect ui.editor directly. So it's no longer necessary to test them in ui.geteditor.
This commit is contained in:
parent
28aef1acdc
commit
371e8cfb4e
@ -1326,9 +1326,7 @@ class ui(object):
|
||||
else:
|
||||
editor = 'vi'
|
||||
return (encoding.environ.get("HGEDITOR") or
|
||||
self.config("ui", "editor") or
|
||||
encoding.environ.get("VISUAL") or
|
||||
encoding.environ.get("EDITOR", editor))
|
||||
self.config("ui", "editor", editor))
|
||||
|
||||
@util.propertycache
|
||||
def _progbar(self):
|
||||
|
Loading…
Reference in New Issue
Block a user