Add automatic settings to ~/.micro/settings.json

This commit is contained in:
Zachary Yedidia
2016-03-28 21:10:10 -04:00
parent 77164fd08c
commit 62967c7935
9 changed files with 128 additions and 56 deletions

View File

@@ -626,7 +626,7 @@ func (v *View) DisplayView() {
if ch == '\t' {
screen.SetContent(x+tabchars, lineN, ' ', nil, lineStyle)
tabSize := options["tabsize"].(int)
tabSize := settings.TabSize
for i := 0; i < tabSize-1; i++ {
tabchars++
screen.SetContent(x+tabchars, lineN, ' ', nil, lineStyle)