comparison src/libvterm/src/pen.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 03826c672315
children eedaa9a30ab4
comparison
equal deleted inserted replaced
20517:a7c6cd0d7ba0 20518:a4652d7ec99f
9 typedef struct { 9 typedef struct {
10 uint8_t red, green, blue; 10 uint8_t red, green, blue;
11 } VTermRGB; 11 } VTermRGB;
12 12
13 static const VTermRGB ansi_colors[] = { 13 static const VTermRGB ansi_colors[] = {
14 // R G B 14 /* R G B */
15 { 0, 0, 0 }, // black 15 { 0, 0, 0 }, // black
16 { 224, 0, 0 }, // red 16 { 224, 0, 0 }, // red
17 { 0, 224, 0 }, // green 17 { 0, 224, 0 }, // green
18 { 224, 224, 0 }, // yellow 18 { 224, 224, 0 }, // yellow
19 { 0, 0, 224 }, // blue 19 { 0, 0, 224 }, // blue
463 default: 463 default:
464 done = 0; 464 done = 0;
465 break; 465 break;
466 } 466 }
467 467
468 if (!done) 468 if(!done)
469 { 469 {
470 DEBUG_LOG1("libvterm: Unhandled CSI SGR %ld\n", arg); 470 DEBUG_LOG1("libvterm: Unhandled CSI SGR %ld\n", arg);
471 } 471 }
472 472
473 while (CSI_ARG_HAS_MORE(args[argi++])) 473 while(CSI_ARG_HAS_MORE(args[argi++]))
474 ; 474 ;
475 } 475 }
476 } 476 }
477 477
478 static int vterm_state_getpen_color(const VTermColor *col, int argi, long args[], int fg) 478 static int vterm_state_getpen_color(const VTermColor *col, int argi, long args[], int fg)