summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-13 12:37:36 +0200
committerhut <hut@lavabit.com>2010-04-13 12:37:55 +0200
commitbec7df57bbf04c8798328cd3b45db2d6c9e54f95 (patch)
treecffb1bdfe7164e8e162eba3c461e0c595420990f
parent62e5fdf30596c76e4b9551964e5af8ea21c9741c (diff)
downloadranger-bec7df57bbf04c8798328cd3b45db2d6c9e54f95.tar.gz
Don't use tab 0 by default
-rw-r--r--ranger/core/actions.py3
-rw-r--r--ranger/defaults/keys.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index a07b4ae0..ac6cfc95 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -521,8 +521,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			self.tab_open(newtab)
 
 	def tab_new(self):
-		for i in range(10):
-			i = (i + 1) % 10
+		for i in range(1, 10):
 			if not i in self.tabs:
 				self.tab_open(i)
 				break
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index c181857e..80985274 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -208,7 +208,7 @@ map('gc', '<C-W>', fm.tab_close())
 map('gt', '<TAB>', fm.tab_move(1))
 map('gT', '<S-TAB>', fm.tab_move(-1))
 map('gn', '<C-N>', fm.tab_new())
-for n in range(10):
+for n in range(1, 10):
 	map('g' + str(n), fm.tab_open(n))
 	map('<A-' + str(n) + '>', fm.tab_open(n))
 
a id='n165' href='#n165'>165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303