diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index 7f5f2dcbc..0497bc251 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -1677,12 +1677,12 @@ static char *char_insert(char *p, char c) // insert the char c at 'p' | |||
1677 | q = prev_line(p); // use prev line as template | 1677 | q = prev_line(p); // use prev line as template |
1678 | len = strspn(q, " \t"); // space or tab | 1678 | len = strspn(q, " \t"); // space or tab |
1679 | if (len) { | 1679 | if (len) { |
1680 | uintptr_t bias; | 1680 | uintptr_t bias; |
1681 | bias = text_hole_make(p, len); | 1681 | bias = text_hole_make(p, len); |
1682 | p += bias; | 1682 | p += bias; |
1683 | q += bias; | 1683 | q += bias; |
1684 | memcpy(p, q, len); | 1684 | memcpy(p, q, len); |
1685 | p += len; | 1685 | p += len; |
1686 | } | 1686 | } |
1687 | } | 1687 | } |
1688 | #endif | 1688 | #endif |