]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/cursor.go
Fix some issues with unicode handling
[micro.git] / cmd / micro / cursor.go
index 2caffae65a250085700226399e2b39fc186fbbce..03ddf15998e7f9eb5644082971d48aefa6d406bb 100644 (file)
@@ -293,7 +293,6 @@ func (c *Cursor) Start() {
 func (c *Cursor) GetCharPosInLine(lineNum, visualPos int) int {
        // Get the tab size
        tabSize := int(settings["tabsize"].(float64))
-       // This is the visual line -- every \t replaced with the correct number of spaces
        visualLineLen := StringWidth(c.buf.Line(lineNum))
        if visualPos > visualLineLen {
                visualPos = visualLineLen