diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-09 12:23:39 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-09 12:23:39 -0400 |
commit | f8c2e25b4ab337789a2e468a8f0aadb0c7fda42f (patch) | |
tree | c7c8b68dbbb216c903c7219c0d68c408d5a427d2 /igen/lexer.h | |
parent | 98886be8aa8508feabbcd8f232ba85ef46a7a139 (diff) |
Replace call to memcpy, with call to memcpy_dir.
This fixes a bug where when shifting the line left, it
would overwrite everything after the cursor with the
character at the cursor's position.
The reason this was happening is because memcpy copies
from start to end, and because the destination is more
than one byte ahead of the source, it overwrites the
next length source bytes, which will repeat until it's
copied n bytes.
Diffstat (limited to 'igen/lexer.h')
0 files changed, 0 insertions, 0 deletions