dreais / SimpleGui

Library using ncurses to build fast and light GUI, in C.
http://rudreais.com
MIT License
2 stars 0 forks source link

[buffer-actions] printing words by words is ineffective #19

Open dreais opened 4 years ago

dreais commented 4 years ago

(sorry, gitkraken mistake) the way the buffer flushes (word by word) is ineffective since we need to apply an offset. however, the offset would need to cut the word, there's 2 solutions

  1. rewrite it all, but i don't know yet how i would do that
  2. write a "get_word_by_offset" function
dreais commented 4 years ago

okay... after some tests, i ran into an issue when trying to implement the second choice. there are many words. and many lines.

for the sake of the feature, the function should be rewritten, but i'm afraid we'll lose some perfs by doing so

dreais commented 4 years ago

nevermind the previous post - we can just use the newly created get_word_by_offset in each iterations (for each words) somehow