Permalink
Browse files

Addition to #14 -- when opening a new view and not changing VIM conte…

…xt, default command_mode to false
  • Loading branch information...
tmanderson committed Oct 31, 2012
1 parent 2b0b9a8 commit 12d4db43211bbe41925ce5dc7465c36f0e0aa756
Showing with 7 additions and 5 deletions.
  1. +1 −1 README.md
  2. +2 −2 packages.json
  3. +4 −2 vintageLines.py
View
@@ -1,4 +1,4 @@
-## VintageLines v0.4
+## VintageLines v0.4.1
### Jankily making relative line numbers in [Vintage mode](http://www.sublimetext.com/docs/2/vintage.html)
VintageLines is available via [Sublime Package Control](http://wbond.net/sublime_packages/package_control).
View
@@ -10,8 +10,8 @@
"platforms": {
"*": [
{
- "version": "0.4",
- "url": "https://nodeload.github.com/tmanderson/VintageLines/zipball/v0.4"
+ "version": "0.4.1",
+ "url": "https://nodeload.github.com/tmanderson/VintageLines/zipball/v0.4.1"
}
]
}
View
@@ -32,7 +32,7 @@ def removeRelativeNumbers(self):
def checkSettings(self):
cur_line = self.view.rowcol(self.view.sel()[0].begin())[0]
-
+
if cur_line == None:
settings.set("vintage_lines.force_mode", True);
@@ -48,8 +48,10 @@ def checkSettings(self):
if settings.has("vintage_lines.force_mode"):
show = settings.get("vintage_lines.force_mode")
- else:
+ elif settings.get('command_mode'):
show = settings.get('command_mode')
+ else:
+ show = False
mode = settings.get('vintage_lines.mode', False)
line = settings.get('vintage_lines.line', -1)

0 comments on commit 12d4db4

Please sign in to comment.