aboutsummaryrefslogtreecommitdiffstats
path: root/src/grid.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippyHEADmainJesse Luehrs2023-08-061-5/+5
|
* stop implementing Default for CellJesse Luehrs2023-03-091-3/+3
|
* simplifyJesse Luehrs2023-03-091-9/+6
|
* let's actually stop being so aggressive hereJesse Luehrs2021-12-141-20/+14
|
* also stop using as castsJesse Luehrs2021-12-141-18/+19
|
* replace all uses of unwrap(), expect(), and indexing with unreachable!()Jesse Luehrs2021-12-141-12/+67
| | | | and also document why they are unreachable
* remove current_cell/current_cell_mutJesse Luehrs2021-12-141-12/+2
| | | | | | | it had an unstated precondition that the cursor was not positioned off the end of a row, which happened to be true in all existing uses, but was hard to verify. moving the unwrap out to the call site makes it easier to audit each use.
* be a bit more explicitJesse Luehrs2021-12-141-4/+7
| | | | | this was also true before, but it was extremely non-obvious, and it should be more obvious
* just pass in the row on its ownJesse Luehrs2021-12-141-11/+12
|
* be a bit smarter about typesJesse Luehrs2021-12-141-8/+8
|
* clean up clippy stuffJesse Luehrs2021-12-131-3/+0
|
* fix restoring the cursor position when scrolled backJesse Luehrs2021-12-131-5/+5
|
* ensure that diffing a screen against itself always returns nothingJesse Luehrs2021-12-101-0/+3
|
* delay allocation of the alternate screenJesse Luehrs2021-12-041-1/+12
|
* another parameter parsing bugJesse Luehrs2021-12-031-1/+1
|
* scrolling down should clear the last row's wrap flagJesse Luehrs2021-12-031-0/+2
|
* fix wrapping while scrolling inside the scroll region tooJesse Luehrs2021-12-031-4/+5
|
* handle scrolling outside of a scroll regionJesse Luehrs2021-12-031-4/+13
| | | | | | it shouldn't scroll the scroll region if you wrap off the end of the whole terminal outside of the scroll region. also, that kind of non-wrap shouldn't set the wrap flag
* more wrapping bugsJesse Luehrs2021-11-201-1/+0
|
* simplifyJesse Luehrs2021-11-201-31/+18
|
* more cursor_state_formatted fixesJesse Luehrs2021-11-201-0/+23
|
* fix another attribute issue with cursor_state_formattedJesse Luehrs2021-11-191-0/+13
|
* fix up some more issues with row_formattedJesse Luehrs2021-11-191-4/+20
| | | | handle cursor positioning and wrapping a bit better
* input validation for vpaJesse Luehrs2021-11-161-0/+7
|
* edition 2021Jesse Luehrs2021-11-161-1/+0
|
* expose some extra internal state to help reproduce line wrappingJesse Luehrs2021-11-161-85/+37
| | | | | | | | adds `row_wrapped` and `cursor_state_formatted` to allow you to better recreate the internal state of the cursor when using `rows_formatted`. also make `rows_formatted` keep track of the wrapping state itself, since there are some edge cases that aren't really able to easily be tracked externally.
* clippyJesse Luehrs2021-11-121-2/+2
|
* fix positioning cursor past end of line when there are wide charactersJesse Luehrs2019-12-071-12/+16
|
* one more try for leaving a cursor at the end of a rowJesse Luehrs2019-12-071-14/+18
|
* more line wrapping fixesJesse Luehrs2019-12-061-1/+0
|
* fix contents when a wrapped row is followed by an empty rowJesse Luehrs2019-12-061-1/+3
|
* also move the wide char check inside the loop for ECHJesse Luehrs2019-12-061-1/+1
|
* track fullwidth continuation cells explicitlyJesse Luehrs2019-12-051-8/+27
| | | | this makes the logic a bit easier to follow
* fix a couple more issues with end of line behaviorJesse Luehrs2019-12-051-6/+98
|
* handle wrapped cursors properly on outputJesse Luehrs2019-11-201-2/+46
|
* actually resize the underlying grid when requestedJesse Luehrs2019-11-121-0/+8
|
* a few more movement tweaksJesse Luehrs2019-11-111-6/+2
|
* preserve all text attributes on cleared cellsJesse Luehrs2019-11-111-17/+17
| | | | | | | some terminals require it (alacritty wants to render underline and inverse state of cleared cells, for instance, so we have to be sure that the diff algorithm will properly reset the cursor attributes before clearing cells)
* stop using formats at allJesse Luehrs2019-11-111-14/+6
| | | | they are too slow
* simplifyJesse Luehrs2019-11-101-2/+2
|
* optimize attribute setting a bitJesse Luehrs2019-11-101-6/+15
|
* optimize cursor movement a bitJesse Luehrs2019-11-101-34/+23
|
* shuffle around some methodsJesse Luehrs2019-11-101-8/+8
|
* implement scrolling backJesse Luehrs2019-11-091-22/+57
|
* optionally save scrollback rowsJesse Luehrs2019-11-091-2/+21
|
* refactor terminal writingJesse Luehrs2019-11-091-34/+52
|
* ignore the scroll region when moving if we're already outside of itJesse Luehrs2019-11-081-4/+12
|
* contents_formatted should also reset attributesJesse Luehrs2019-11-081-1/+1
| | | | for the same reason as contents_diff
* VPA should not be restricted to the scroll regionJesse Luehrs2019-11-081-2/+0
| | | | since it is absolute positioning
* fix RI at the top of the screenJesse Luehrs2019-11-081-1/+8
|