mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
Revert "term: cursor-left: reduce move count by one when lcf=true"
This reverts commit 02e3e4ac9b.
This broke at least Emacs. Cursor movement at the margins *is*
undefined, and the behavior we’re now reverting to matches XTerm.
This commit is contained in:
parent
02e3e4ac9b
commit
5594746e49
2 changed files with 0 additions and 7 deletions
|
|
@ -43,8 +43,6 @@
|
|||
that it is (much) slower compared to previous foot versions. Use the
|
||||
**scrollback.multiplier** option in `foot.ini` if you find the new
|
||||
speed too slow (https://codeberg.org/dnkl/foot/issues/144).
|
||||
* Cursor left movements moving cursor to wrong location when cursor is
|
||||
“beyond” the right margin.
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
|
|
@ -1728,11 +1728,6 @@ term_cursor_home(struct terminal *term)
|
|||
void
|
||||
term_cursor_left(struct terminal *term, int count)
|
||||
{
|
||||
if (unlikely(term->grid->cursor.lcf))
|
||||
count--;
|
||||
|
||||
assert(count >= 0);
|
||||
|
||||
int move_amount = min(term->grid->cursor.point.col, count);
|
||||
term->grid->cursor.point.col -= move_amount;
|
||||
assert(term->grid->cursor.point.col >= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue