mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: cursor-left: don’t do reverse-wrapping unless auto-margins are enabled
This matches XTerm’s behavior.
This commit is contained in:
parent
1ad766f4fb
commit
97e07c1ea1
1 changed files with 1 additions and 1 deletions
|
|
@ -1733,7 +1733,7 @@ term_cursor_left(struct terminal *term, int count)
|
|||
|
||||
/* Reverse wrap */
|
||||
if (unlikely(new_col < 0)) {
|
||||
if (unlikely(term->reverse_wrap)) {
|
||||
if (unlikely(term->reverse_wrap && term->auto_margin)) {
|
||||
|
||||
/* Number of rows to reverse wrap through */
|
||||
int row_count = (abs(new_col) - 1) / term->cols + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue