diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c index ee3c7feb2..271529404 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -2364,7 +2364,7 @@ static void undo_push(char *src, unsigned int length, uint8_t u_type) // Add to | |||
2364 | // Allocate a new undo object | 2364 | // Allocate a new undo object |
2365 | if (u_type == UNDO_DEL || u_type == UNDO_DEL_CHAIN) { | 2365 | if (u_type == UNDO_DEL || u_type == UNDO_DEL_CHAIN) { |
2366 | // For UNDO_DEL objects, save deleted text | 2366 | // For UNDO_DEL objects, save deleted text |
2367 | if ((src + length) == end) | 2367 | if ((text + length) == end) |
2368 | length--; | 2368 | length--; |
2369 | // If this deletion empties text[], strip the newline. When the buffer becomes | 2369 | // If this deletion empties text[], strip the newline. When the buffer becomes |
2370 | // zero-length, a newline is added back, which requires this to compensate. | 2370 | // zero-length, a newline is added back, which requires this to compensate. |