Mercurial > vim
comparison src/libvterm/src/encoding.c @ 20518:a4652d7ec99f v8.2.0813
patch 8.2.0813: libvterm code is slightly different from upstream
Commit: https://github.com/vim/vim/commit/591cec8366e87a172495c362477cbf5de8d399f0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 22 22:06:06 2020 +0200
patch 8.2.0813: libvterm code is slightly different from upstream
Problem: libvterm code is slightly different from upstream.
Solution: Use upstream text to avoid future merge problems. Mainly comment
style changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 May 2020 22:15:04 +0200 |
parents | 811a12a78164 |
children | 82336c3b679d |
comparison
equal
deleted
inserted
replaced
20517:a7c6cd0d7ba0 | 20518:a4652d7ec99f |
---|---|
221 { ENC_SINGLE_94, 'A', (VTermEncoding*)&encoding_uk }, | 221 { ENC_SINGLE_94, 'A', (VTermEncoding*)&encoding_uk }, |
222 { ENC_SINGLE_94, 'B', &encoding_usascii }, | 222 { ENC_SINGLE_94, 'B', &encoding_usascii }, |
223 { 0, 0, NULL }, | 223 { 0, 0, NULL }, |
224 }; | 224 }; |
225 | 225 |
226 // This ought to be INTERNAL but isn't because it's used by unit testing | 226 /* This ought to be INTERNAL but isn't because it's used by unit testing */ |
227 VTermEncoding *vterm_lookup_encoding(VTermEncodingType type, char designation) | 227 VTermEncoding *vterm_lookup_encoding(VTermEncodingType type, char designation) |
228 { | 228 { |
229 int i; | 229 int i; |
230 for(i = 0; encodings[i].designation; i++) | 230 for(i = 0; encodings[i].designation; i++) |
231 if(encodings[i].type == type && encodings[i].designation == designation) | 231 if(encodings[i].type == type && encodings[i].designation == designation) |