summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-06 00:05:48 +0200
committerhut <hut@lavabit.com>2010-04-06 00:05:48 +0200
commitc72c8a9a1023515e1a732f156a02096155f8bbc5 (patch)
tree2d930f75740f6f58a043d25b6b5358ff0870d571
parentb312584976a07c622d70022fb78102285acc5624 (diff)
downloadranger-c72c8a9a1023515e1a732f156a02096155f8bbc5.tar.gz
core.actions: Allow to specify if a "cd" is saved in history
-rw-r--r--ranger/core/actions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index ac28ed52..7da029cd 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -82,18 +82,18 @@ class Actions(EnvironmentAware, SettingsAware):
 		"""Exit the program"""
 		raise SystemExit()
 
-	def enter_dir(self, path, remember=False):
+	def enter_dir(self, path, remember=False, history=True):
 		"""Enter the directory at the given path"""
 		if remember:
 			cwd = self.env.cwd
-			result = self.env.enter_dir(path)
+			result = self.env.enter_dir(path, history=history)
 			self.bookmarks.remember(cwd)
 			return result
-		return self.env.enter_dir(path)
+		return self.env.enter_dir(path, history=history)
 
 	def cd(self, path, remember=True):
 		"""enter the directory at the given path, remember=True"""
-		self.enter_dir(path, remember)
+		self.enter_dir(path, remember=remember)
 
 	def tag_toggle(self, movedown=None):
 		try: