#394: Force history_limit to be int

This commit is contained in:
nvbn
2015-10-30 16:23:19 +08:00
parent 8c8abca8d5
commit 2fea0d4c60
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -128,6 +128,8 @@ class Settings(dict):
return int(val)
elif attr in ('require_confirmation', 'no_colors', 'debug'):
return val.lower() == 'true'
elif attr == 'history_limit':
return int(val)
else:
return val