Title: Need guidence for implementing "soft-wrap lines" · Issue #62 · snaptoken/kilo-tutorial · GitHub
Open Graph Title: Need guidence for implementing "soft-wrap lines" · Issue #62 · snaptoken/kilo-tutorial
X Title: Need guidence for implementing "soft-wrap lines" · Issue #62 · snaptoken/kilo-tutorial
Description: First of all, thank you so much for creating this amazing tutorial. I went through the tutorial, built my own kilo, and now I'm trying to implement all the functions listed in the Appendix. However, I'm stuck on "soft-wrap lines." What I...
Open Graph Description: First of all, thank you so much for creating this amazing tutorial. I went through the tutorial, built my own kilo, and now I'm trying to implement all the functions listed in the Appendix. However...
X Description: First of all, thank you so much for creating this amazing tutorial. I went through the tutorial, built my own kilo, and now I'm trying to implement all the functions listed in the Appendix. How...
Opengraph URL: https://github.com/snaptoken/kilo-tutorial/issues/62
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need guidence for implementing \"soft-wrap lines\"","articleBody":"First of all, thank you so much for creating this amazing tutorial. I went through the tutorial, built my own `kilo`, and now I'm trying to implement all the functions listed in the Appendix. However, I'm stuck on \"soft-wrap lines.\"\r\n\r\nWhat I came up with is making `render` an array of strings. Then, every time I update a row, I split the characters into an array. But when doing so, it gets complicated very quickly. The `hl` array also needs to change to an array type since it syncs with `render`. I end up dealing with a lot of `malloc` and `realloc` calls, and I need to introduce a new state, `ry`, to track the cursor's vertical coordinate.\r\n\r\nSo, I wonder if there is any simpler way to implement this?","author":{"url":"https://github.com/savemejeff","@type":"Person","name":"savemejeff"},"datePublished":"2024-12-13T16:54:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62/kilo-tutorial/issues/62"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f5675eb9-3f27-7528-f03a-90a0b95f79f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3B0:137A76:F841B3:16CFAE0:6A4B9B46 |
| html-safe-nonce | 3ebdf80611288927b03f7185eaf6d7d5f24eea5e962b748f15e57a0c15eb3ce3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0IwOjEzN0E3NjpGODQxQjM6MTZDRkFFMDo2QTRCOUI0NiIsInZpc2l0b3JfaWQiOiIxMTkxNDkzMzIzNDgwMzQxMzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3a172af76a3a842603058a8c52fbe7d032075766d40b2ee63413aa44c5eaf4dd |
| hovercard-subject-tag | issue:2738804932 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/snaptoken/kilo-tutorial/62/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1d4369ed55971900518c7546bcd8068e5a86bd94ecc6ef57f6e2260e3bccaa3/snaptoken/kilo-tutorial/issues/62 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1d4369ed55971900518c7546bcd8068e5a86bd94ecc6ef57f6e2260e3bccaa3/snaptoken/kilo-tutorial/issues/62 |
| og:image:alt | First of all, thank you so much for creating this amazing tutorial. I went through the tutorial, built my own kilo, and now I'm trying to implement all the functions listed in the Appendix. However... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | savemejeff |
| hostname | github.com |
| expected-hostname | github.com |
| None | a7e470aeb8fedd833ae331b0a162f6c5a72c09b899dd94a7cd531e5e0e3a93d5 |
| turbo-cache-control | no-preview |
| go-import | github.com/snaptoken/kilo-tutorial git https://github.com/snaptoken/kilo-tutorial.git |
| octolytics-dimension-user_id | 26369560 |
| octolytics-dimension-user_login | snaptoken |
| octolytics-dimension-repository_id | 83657016 |
| octolytics-dimension-repository_nwo | snaptoken/kilo-tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 83657016 |
| octolytics-dimension-repository_network_root_nwo | snaptoken/kilo-tutorial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 002ff9eae32541065971ef8eb83be807119742a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width