mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
use space for indentchar if empty, fixes #660
This commit is contained in:
@@ -67,7 +67,12 @@ type CellView struct {
|
||||
func (c *CellView) Draw(buf *Buffer, top, height, left, width int) {
|
||||
tabsize := int(buf.Settings["tabsize"].(float64))
|
||||
softwrap := buf.Settings["softwrap"].(bool)
|
||||
indentchar := []rune(buf.Settings["indentchar"].(string))[0]
|
||||
indentrunes := []rune(buf.Settings["indentchar"].(string))
|
||||
// if empty indentchar settings, use space
|
||||
if indentrunes == nil || len(indentrunes) == 0 {
|
||||
indentrunes = []rune(" ")
|
||||
}
|
||||
indentchar := indentrunes[0]
|
||||
|
||||
start := buf.Cursor.Y
|
||||
if buf.Settings["syntax"].(bool) && buf.syntaxDef != nil {
|
||||
|
||||
Reference in New Issue
Block a user