Mercurial > vim
comparison src/textprop.c @ 23229:b545334ae654 v8.2.2160
patch 8.2.2160: various typos
Commit: https://github.com/vim/vim/commit/8e7d6223f630690b72b387eaed704bf01f3f29d2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 18 19:49:56 2020 +0100
patch 8.2.2160: various typos
Problem: Various typos.
Solution: Fix spelling mistakes. (closes https://github.com/vim/vim/issues/7494)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Dec 2020 20:00:06 +0100 |
parents | 0271c2b8bb35 |
children | 90ea5037a7e3 |
comparison
equal
deleted
inserted
replaced
23228:2c76cf162844 | 23229:b545334ae654 |
---|---|
300 if (length > (long)textlen) | 300 if (length > (long)textlen) |
301 length = (int)textlen; // can include the end-of-line | 301 length = (int)textlen; // can include the end-of-line |
302 if (length < 0) | 302 if (length < 0) |
303 length = 0; // zero-width property | 303 length = 0; // zero-width property |
304 | 304 |
305 // Allocate the new line with space for the new proprety. | 305 // Allocate the new line with space for the new property. |
306 newtext = alloc(buf->b_ml.ml_line_len + sizeof(textprop_T)); | 306 newtext = alloc(buf->b_ml.ml_line_len + sizeof(textprop_T)); |
307 if (newtext == NULL) | 307 if (newtext == NULL) |
308 return; | 308 return; |
309 // Copy the text, including terminating NUL. | 309 // Copy the text, including terminating NUL. |
310 mch_memmove(newtext, buf->b_ml.ml_line_ptr, textlen); | 310 mch_memmove(newtext, buf->b_ml.ml_line_ptr, textlen); |
1483 | 1483 |
1484 mch_memmove(&prop, props + i * sizeof(prop), sizeof(prop)); | 1484 mch_memmove(&prop, props + i * sizeof(prop), sizeof(prop)); |
1485 end = !(prop.tp_flags & TP_FLAG_CONT_NEXT); | 1485 end = !(prop.tp_flags & TP_FLAG_CONT_NEXT); |
1486 | 1486 |
1487 adjust_prop(&prop, 0, -removed, 0); // Remove leading spaces | 1487 adjust_prop(&prop, 0, -removed, 0); // Remove leading spaces |
1488 adjust_prop(&prop, -1, col, 0); // Make line start at its final colum | 1488 adjust_prop(&prop, -1, col, 0); // Make line start at its final column |
1489 | 1489 |
1490 if (add_all || end) | 1490 if (add_all || end) |
1491 mch_memmove(new_props + --(*props_remaining) * sizeof(prop), | 1491 mch_memmove(new_props + --(*props_remaining) * sizeof(prop), |
1492 &prop, sizeof(prop)); | 1492 &prop, sizeof(prop)); |
1493 else | 1493 else |