Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes, Zoom, and Cursor #22

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft

Bugfixes, Zoom, and Cursor #22

wants to merge 18 commits into from

Conversation

jarbus
Copy link
Owner

@jarbus jarbus commented Jul 31, 2021

There is now a cursor when editing text, that you can move around with the arrow keys, and zooming now works with - and =.

Yes these should have been two different PRs.

@jarbus jarbus requested a review from OwenDurkin July 31, 2021 21:23
Copy link
Collaborator

@OwenDurkin OwenDurkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General feedback, some suggestions, and potential bug identifications.

dtree.c Outdated Show resolved Hide resolved
dtree.c Outdated Show resolved Hide resolved
dtree.c Outdated Show resolved Hide resolved
dtree.c Show resolved Hide resolved
dtree.c Outdated Show resolved Hide resolved
@@ -1069,6 +1221,11 @@ int main(int argc, char *argv[]) {
strcpy(FILENAME_BUFFER.buf, "unnamed.txt");


HINT_TEXT_QUEUE = calloc(8192, sizeof(char*));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arbitrary buffer sizes aren't great but I understand that we might hack it until we get a more permanent solution in. All the same, 8192 is a magic number here- would be better to put it in a static const variable. Again, the more permanent solution would be to re-use the data structures that we have.

dtree.c Outdated Show resolved Hide resolved
dtree.c Show resolved Hide resolved
dtree.c Outdated Show resolved Hide resolved
dtree.c Outdated Show resolved Hide resolved
@jarbus jarbus requested a review from OwenDurkin August 4, 2021 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants