diff --git a/bpython.py b/bpython.py index 865abc8..e6f53d7 100644 --- a/bpython.py +++ b/bpython.py @@ -510,7 +510,7 @@ class Repl: fn = self.statusbar.prompt( 'Save to file: ' ) - if '~' in fn: + if fn.startswith('~'): fn = os.path.expanduser( fn ) s = self.getstdout()