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

Includes improvement #121

Closed
wants to merge 1 commit into from
Closed

Includes improvement #121

wants to merge 1 commit into from

Conversation

harrymkt
Copy link
Contributor

  • set_line function now returns an int rather than a bool. Values are 0 for success, 1 for invalid line and 2 for invalid coloumn, as well as -1 for an internal error.
  • You can no longer go beyond the maximum coloumn in form input. For example if the input has 50 characters in length, you can go up to 51, because 51 will be the blank character from which you can continue to write from the end. This change closes form. A fue improvements for go to line functions #62.
  • Improved the touch.nvgt is_available method's return value as return dev.length() > 0; for short.

* `set_line` function now returns an int rather than a bool. Values are 0 for success, 1 for invalid line and 2 for invalid coloumn, as well as -1 for an internal error.
* You can no longer go beyond the maximum coloumn in form input. For example if the input has 50 characters in length, you can go up to 51, because 51 will be the blank character from which you can continue to write from the end. This change closes samtupy#62.
* Improved the touch.nvgt `is_available` method's return value as `return dev.length() > 0;` for short.
@amirmahdifard
Copy link

this was already that case, please don't do this. int max_col = text.lenght+1

@harrymkt
Copy link
Contributor Author

@amirmahdifard You yourself asked to do that in issue #62 I believe.

The column will only able to type 1 length beyond its text. For example text with 18 characters you could type 19 to get to the blank character, and 20 will fail. I have personally tested.

@amirmahdifard
Copy link

yes I asked, but please return this line back because this will work that way better because it will only effect the current line, and as i'm testing, this also works as we expect, so return this back, like this like befor.
int maxcoll=col

@harrymkt
Copy link
Contributor Author

@amirmahdifard Do you mean not to change it? Not to print error message? Ok then. This fixes by closing this

@harrymkt harrymkt closed this Oct 25, 2024
@harrymkt harrymkt deleted the Includes branch October 25, 2024 03:47
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.

form. A fue improvements for go to line functions
2 participants