rhysd / tui-textarea

Simple yet powerful multi-line text editor widget for ratatui and tui-rs
https://crates.io/crates/tui-textarea
MIT License
323 stars 61 forks source link

Hard tabs are not rendered #1

Closed rhysd closed 2 years ago

rhysd commented 2 years ago

Repro

Save the following code as foo.go.

package main

func main() {
    println("hello")
    if true {
        println("true")
    }
}

Then run cargo run --example editor foo.go

Expected behavior

Hard tabs are rendered as tabs.

package main

func main() {
    println("hello")
    if true {
        println("true")
    }
}

Actual behavior

Hard tabs are not rendered.

package main

func main() {
println("hello")
if true {
println("true")
}
}

Environment