Mercurial > vim
comparison src/clipboard.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | f48c435bd1df |
children | bce848ec8b1b |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
565 | 565 |
566 if (row >= screen_Rows || col >= screen_Columns || ScreenLines == NULL) | 566 if (row >= screen_Rows || col >= screen_Columns || ScreenLines == NULL) |
567 return; | 567 return; |
568 | 568 |
569 p = ScreenLines + LineOffset[row]; | 569 p = ScreenLines + LineOffset[row]; |
570 // Correct for starting in the right halve of a double-wide char | 570 // Correct for starting in the right half of a double-wide char |
571 if (enc_dbcs != 0) | 571 if (enc_dbcs != 0) |
572 col -= dbcs_screen_head_off(p, p + col); | 572 col -= dbcs_screen_head_off(p, p + col); |
573 else if (enc_utf8 && p[col] == 0) | 573 else if (enc_utf8 && p[col] == 0) |
574 --col; | 574 --col; |
575 start_class = CHAR_CLASS(p[col]); | 575 start_class = CHAR_CLASS(p[col]); |
1028 if (row1 < clip_star.min_row) | 1028 if (row1 < clip_star.min_row) |
1029 row1 = clip_star.min_row; | 1029 row1 = clip_star.min_row; |
1030 if (row2 > clip_star.max_row) | 1030 if (row2 > clip_star.max_row) |
1031 row2 = clip_star.max_row; | 1031 row2 = clip_star.max_row; |
1032 #endif | 1032 #endif |
1033 // correct starting point for being on right halve of double-wide char | 1033 // correct starting point for being on right half of double-wide char |
1034 p = ScreenLines + LineOffset[row1]; | 1034 p = ScreenLines + LineOffset[row1]; |
1035 if (enc_dbcs != 0) | 1035 if (enc_dbcs != 0) |
1036 col1 -= (*mb_head_off)(p, p + col1); | 1036 col1 -= (*mb_head_off)(p, p + col1); |
1037 else if (enc_utf8 && p[col1] == 0) | 1037 else if (enc_utf8 && p[col1] == 0) |
1038 --col1; | 1038 --col1; |
1138 break; | 1138 break; |
1139 bufp += utf_char2bytes(ScreenLinesC[ci][off + i], | 1139 bufp += utf_char2bytes(ScreenLinesC[ci][off + i], |
1140 bufp); | 1140 bufp); |
1141 } | 1141 } |
1142 } | 1142 } |
1143 // Skip right halve of double-wide character. | 1143 // Skip right half of double-wide character. |
1144 if (ScreenLines[off + i + 1] == 0) | 1144 if (ScreenLines[off + i + 1] == 0) |
1145 ++i; | 1145 ++i; |
1146 } | 1146 } |
1147 } | 1147 } |
1148 else | 1148 else |