comparison src/highlight.c @ 20603:c2570baa2e4c v8.2.0855

patch 8.2.0855: GUI tests fail because the test doesn't use a modifier Commit: https://github.com/vim/vim/commit/ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 30 21:52:54 2020 +0200 patch 8.2.0855: GUI tests fail because the test doesn't use a modifier Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 May 2020 22:00:04 +0200
parents 4c317d8c1051
children 68c206d3a251
comparison
equal deleted inserted replaced
20602:67dccb63d65c 20603:c2570baa2e4c
1410 /* 1410 /*
1411 * Copy characters from arg[] to buf[], translating <> codes. 1411 * Copy characters from arg[] to buf[], translating <> codes.
1412 */ 1412 */
1413 for (p = arg, off = 0; off < 100 - 6 && *p; ) 1413 for (p = arg, off = 0; off < 100 - 6 && *p; )
1414 { 1414 {
1415 len = trans_special(&p, buf + off, FALSE, FALSE, 1415 len = trans_special(&p, buf + off, FSK_SIMPLIFY, NULL);
1416 TRUE, NULL);
1417 if (len > 0) // recognized special char 1416 if (len > 0) // recognized special char
1418 off += len; 1417 off += len;
1419 else // copy as normal char 1418 else // copy as normal char
1420 buf[off++] = *p++; 1419 buf[off++] = *p++;
1421 } 1420 }