##// END OF EJS Templates
fix cd to nonexistent dir when dhist is empty, close \#180
vivainio -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 2668 2007-08-24 17:10:46Z vivainio $"""
4 $Id: Magic.py 2675 2007-08-27 17:51:15Z vivainio $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -2517,7 +2517,7 b' Defaulting color scheme to \'NoColor\'"""'
2517 dhist = self.shell.user_ns['_dh']
2517 dhist = self.shell.user_ns['_dh']
2518 dhist.append(cwd)
2518 dhist.append(cwd)
2519 self.db['dhist'] = compress_dhist(dhist)[-100:]
2519 self.db['dhist'] = compress_dhist(dhist)[-100:]
2520 if not 'q' in opts:
2520 if not 'q' in opts and self.shell.user_ns['_dh']:
2521 print self.shell.user_ns['_dh'][-1]
2521 print self.shell.user_ns['_dh'][-1]
2522
2522
2523
2523
@@ -1,3 +1,7 b''
1 2007-08-27 Ville Vainio <vivainio@gmail.com>
2
3 * Magic.py: fix %cd for nonexistent dir when dhist is empty, close #180
4
1 2007-08-26 Ville Vainio <vivainio@gmail.com>
5 2007-08-26 Ville Vainio <vivainio@gmail.com>
2
6
3 * ipmaker.py: Command line args have the highest priority again
7 * ipmaker.py: Command line args have the highest priority again
General Comments 0
You need to be logged in to leave comments. Login now