Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clippy | Jesse Luehrs | 2023-02-05 | 2 | -55/+57 |
| | |||||
* | more clippy consistency | Jesse Luehrs | 2021-12-15 | 1 | -0/+1 |
| | |||||
* | bump itoa | Jesse Luehrs | 2021-12-15 | 1 | -11/+10 |
| | |||||
* | more conversion to indexing | Jesse Luehrs | 2021-12-15 | 2 | -14/+11 |
| | |||||
* | let's actually stop being so aggressive here | Jesse Luehrs | 2021-12-14 | 6 | -64/+58 |
| | |||||
* | more clippy consistency | Jesse Luehrs | 2021-12-14 | 1 | -0/+1 |
| | |||||
* | more standardization on clippy lints | Jesse Luehrs | 2021-12-14 | 1 | -1/+1 |
| | |||||
* | also stop using as casts | Jesse Luehrs | 2021-12-14 | 5 | -47/+53 |
| | |||||
* | replace all uses of unwrap(), expect(), and indexing with unreachable!() | Jesse Luehrs | 2021-12-14 | 6 | -56/+264 |
| | | | | and also document why they are unreachable | ||||
* | remove current_cell/current_cell_mut | Jesse Luehrs | 2021-12-14 | 2 | -15/+6 |
| | | | | | | | 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. | ||||
* | remove unnecessary condition | Jesse Luehrs | 2021-12-14 | 1 | -15/+6 |
| | | | | | we already wrapped (by calling col_wrap) so pos.col will always be less than size.cols | ||||
* | be a bit more explicit | Jesse Luehrs | 2021-12-14 | 1 | -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 own | Jesse Luehrs | 2021-12-14 | 2 | -51/+31 |
| | |||||
* | be a bit smarter about types | Jesse Luehrs | 2021-12-14 | 2 | -23/+23 |
| | |||||
* | clean up clippy stuff | Jesse Luehrs | 2021-12-13 | 5 | -11/+3 |
| | |||||
* | fix restoring the cursor position when scrolled back | Jesse Luehrs | 2021-12-13 | 1 | -5/+5 |
| | |||||
* | ensure that diffing a screen against itself always returns nothing | Jesse Luehrs | 2021-12-10 | 3 | -0/+6 |
| | |||||
* | add Screen::errors | Jesse Luehrs | 2021-12-06 | 1 | -0/+23 |
| | |||||
* | better (i think?) handling of weird character widths | Jesse Luehrs | 2021-12-06 | 2 | -2/+7 |
| | | | | | control codes are ignored completely, and everything else defaults to 1 instead of 0 | ||||
* | delay allocation of the alternate screen | Jesse Luehrs | 2021-12-04 | 2 | -2/+16 |
| | |||||
* | another parameter parsing bug | Jesse Luehrs | 2021-12-03 | 1 | -1/+1 |
| | |||||
* | fix receiving empty params | Jesse Luehrs | 2021-12-03 | 1 | -5/+5 |
| | |||||
* | another missing attribute setting | Jesse Luehrs | 2021-12-03 | 1 | -0/+5 |
| | |||||
* | we want to force wrapping here even if the cursor was already correct | Jesse Luehrs | 2021-12-03 | 1 | -2/+1 |
| | |||||
* | scrolling down should clear the last row's wrap flag | Jesse Luehrs | 2021-12-03 | 1 | -0/+2 |
| | |||||
* | fix wrapping while scrolling inside the scroll region too | Jesse Luehrs | 2021-12-03 | 1 | -4/+5 |
| | |||||
* | handle scrolling outside of a scroll region | Jesse Luehrs | 2021-12-03 | 1 | -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 | ||||
* | wide continuation cells should not have attributes | Jesse Luehrs | 2021-12-03 | 1 | -1/+1 |
| | | | | it confuses things like cell insertion | ||||
* | fix cell attrs when wrapped but no first cell contents on next line | Jesse Luehrs | 2021-12-03 | 1 | -0/+11 |
| | |||||
* | fix keeping cursor past end of line with diffs | Jesse Luehrs | 2021-12-03 | 1 | -2/+4 |
| | |||||
* | another wide char/line wrapping edge case | Jesse Luehrs | 2021-12-03 | 1 | -6/+12 |
| | |||||
* | more wrapping bugs | Jesse Luehrs | 2021-11-20 | 2 | -2/+2 |
| | |||||
* | only do wrapping logic during diff if we weren't wrapping before | Jesse Luehrs | 2021-11-20 | 1 | -1/+1 |
| | |||||
* | i... don't think this conditional ever did anything? | Jesse Luehrs | 2021-11-20 | 1 | -46/+2 |
| | | | | | i can't even understand the logic involved here, but it seems nonsensical to me, and removing it doesn't break any tests | ||||
* | simplify | Jesse Luehrs | 2021-11-20 | 1 | -31/+18 |
| | |||||
* | more cursor_state_formatted fixes | Jesse Luehrs | 2021-11-20 | 1 | -0/+23 |
| | |||||
* | make sure all of these cases are handled the same | Jesse Luehrs | 2021-11-20 | 1 | -3/+22 |
| | |||||
* | more wrapping + el bugs | Jesse Luehrs | 2021-11-20 | 1 | -6/+43 |
| | |||||
* | fix another attribute issue with cursor_state_formatted | Jesse Luehrs | 2021-11-19 | 1 | -0/+13 |
| | |||||
* | more line wrapping bugs | Jesse Luehrs | 2021-11-19 | 1 | -1/+1 |
| | |||||
* | fix up some more issues with row_formatted | Jesse Luehrs | 2021-11-19 | 3 | -14/+54 |
| | | | | handle cursor positioning and wrapping a bit better | ||||
* | remove special casing for combined character wrapping | Jesse Luehrs | 2021-11-19 | 1 | -13/+2 |
| | | | | | | | the comment here is just... not true? not really sure why i thought it was, but testing on all of alacritty, xterm, and tmux show the opposite behavior to what is in the comment, so i'm going to assume this is just wrong | ||||
* | fix some line wrapping state issues | Jesse Luehrs | 2021-11-18 | 1 | -2/+11 |
| | |||||
* | input validation for vpa | Jesse Luehrs | 2021-11-16 | 1 | -0/+7 |
| | |||||
* | edition 2021 | Jesse Luehrs | 2021-11-16 | 3 | -3/+0 |
| | |||||
* | expose some extra internal state to help reproduce line wrapping | Jesse Luehrs | 2021-11-16 | 2 | -92/+79 |
| | | | | | | | | 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. | ||||
* | reorder the functions | Jesse Luehrs | 2021-11-12 | 1 | -6/+6 |
| | |||||
* | add a function to return whether the alternate screen is in use | Jesse Luehrs | 2021-11-12 | 1 | -0/+6 |
| | |||||
* | clippy | Jesse Luehrs | 2021-11-12 | 6 | -32/+34 |
| | |||||
* | add Screen::state_formatted and Screen::state_diff | Jesse Luehrs | 2021-03-09 | 1 | -0/+26 |
| |