9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.61k stars 319 forks source link

acme deleting more than selected text #590

Open arturfabriciohahaedgy opened 1 year ago

arturfabriciohahaedgy commented 1 year ago

I've recently started to notice that acme is deleting one character more than the test that was selected. For example if there's a function like:

func getDbTables(db *sql.DB) {
    tname := []string
    rows, err := db.Query("SELECT * from sqlite_master WHERE type = 'table';")
    if err != nil {
        log.Fatal(err)
    }
}

and I select everything inside (db *sql.DB), when I press backspace the result will be: func getDbTables) { Which I assume it's a bug since acme has a feature to select everything inside pairs of "" and {} and stuff, but then one more char is deleted.

Anyone is experiencing this issue too? I'm on Arch Linux using the current plan9port version.

Thanks for any answears!

markvanatten commented 1 year ago

and I select everything inside (db *sql.DB), when I press backspace the result will be:

The selection is replaced by a backspace, which is so to speak an active character, with the effect of deleting the character preceding it.

There is some discussion in the archive.

Mark.

arturfabriciohahaedgy commented 1 year ago

Oh, I see, makes sense, will give it a search later.

Thanks!