mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: cursor-left: unlikely -> likely for reverse-wrap
Since reverse wrap-around is enabled by default, we’re *likely* to take this branch.
This commit is contained in:
parent
e36d907f3d
commit
9f9ad69849
1 changed files with 1 additions and 1 deletions
|
|
@ -1735,7 +1735,7 @@ term_cursor_left(struct terminal *term, int count)
|
|||
|
||||
/* Reverse wrap */
|
||||
if (unlikely(new_col < 0)) {
|
||||
if (unlikely(term->reverse_wrap && term->auto_margin)) {
|
||||
if (likely(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