From 57de16c6611f3ee28e6a79aaca25aa887eb74dbf 2006-04-03 16:25:59 From: vivainio Date: 2006-04-03 16:25:59 Subject: [PATCH] Walter's ipipe patch #9: Only beep at the goto prompt if no key has been pressed. Use normpath() insted of abspath() in ifile.__xrepr__(). --- diff --git a/IPython/Extensions/ipipe.py b/IPython/Extensions/ipipe.py index 24c17ae..4b49700 100644 --- a/IPython/Extensions/ipipe.py +++ b/IPython/Extensions/ipipe.py @@ -908,7 +908,7 @@ class ifile(path.path): name = "ifile" style = style_default if mode == "cell" or mode in "header" or mode == "footer": - abspath = repr(path._base(self.abspath())) + abspath = repr(path._base(self.normpath())) if abspath.startswith("u"): abspath = abspath[2:-1] else: @@ -3103,7 +3103,7 @@ if curses is not None: if self.goto: level.moveto(level.curx, int(self.goto)) break - else: + elif c != -1: curses.beep() else: # if no key is pressed slow down and beep again