antirez / antirez/linenoise

ctrl-b weirdness when there is leading tabs

Offen
#4 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
4.4k
Forks
741
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Simple test case:
- run make
- run libnoise_example
- press tab _twice_
- type foo
- press space one or more times
- type bar
- press ctrl-b

You'll see that rather than moving the cursor back over the r in bar, it moves it to the space before the f in foo. On top of that, if you start pressing ctrl-f, you will eventually be unable to move past the f. This is because the cursor _seems_ to be at the end of line already. Any thing typed after hitting that invisible wall, will be echoed out as occuring after the bar when you press enter.

This seems to be a regular thing when lines have tabs in them during a ctrl-b/left arrow event.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.