summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-11-02 13:30:51 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-02 13:30:51 +0000
commitc57b5bcd22826e0852c2bc9c7d4382e1cac7cb74 (patch)
treed5163254047cdaa5cedd5caa4745727f6124eaf3 /src/gui_gtk_x11.c
parent1410d1841bfc4370dec1babe24c6664e06d7c9d9 (diff)
patch 9.0.0828: various typosv9.0.0828
Problem: Various typos. Solution: Correct typos. (closes #11432)
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 58b793109e..25685ddb28 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -5772,7 +5772,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
* String received to output to screen can print using pre-cached glyphs
* (fast) or Pango (slow). Ligatures and multibype utf-8 must use Pango.
* Since we receive mixed content string, split it into logical segments
- * that are guaranteed to go trough glyphs as much as possible. Since
+ * that are guaranteed to go through glyphs as much as possible. Since
* single ligature char prints as ascii, print it that way.
*/
len_sum = 0; // return value needs to add up since we are printing
@@ -5781,7 +5781,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
cs = s;
// First char decides starting needs_pango mode, 0=ascii 1=utf8/ligatures.
// Even if it is ligature char, two chars or more make ligature.
- // Ascii followed by utf8 is also going trough pango.
+ // Ascii followed by utf8 is also going through pango.
is_utf8 = (*cs & 0x80);
is_ligature = gui.ligatures_map[*cs] && (len > 1);
if (is_ligature)
@@ -5808,7 +5808,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
}
is_utf8 = *(cs + slen) & 0x80;
// ascii followed by utf8 could be combining
- // if so send it trough pango
+ // if so send it through pango
if ((!is_utf8) && ((slen + 1) < (len - byte_sum)))
is_utf8 = (*(cs + slen + 1) & 0x80);
should_need_pango = (is_ligature || is_utf8);