Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 343 Bytes

6-11.md

File metadata and controls

10 lines (8 loc) · 343 Bytes

word wrapping caused large refactor

i changed state.text to 1d array for this, but now i'm thinking going back to 2d array is good idea. but instead of ignoring "\n" like before, now we include them.

basically the problem with 1d array is that:

  1. it is slower to insert and delete characters
  2. it is harder to insert and delete characters