Mercurial > vim
comparison src/terminal.c @ 18251:c8a53c0daeed v8.1.2120
patch 8.1.2120: some MB_ macros are more complicated than necessary
Commit: https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 6 22:00:13 2019 +0200
patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Oct 2019 22:15:04 +0200 |
parents | 6c3a8312486d |
children | e8d1f3209dcd |
comparison
equal
deleted
inserted
replaced
18250:f1d9d3f76c98 | 18251:c8a53c0daeed |
---|---|
5429 cellattr = line->sb_cells + pos.col; | 5429 cellattr = line->sb_cells + pos.col; |
5430 width = cellattr->width; | 5430 width = cellattr->width; |
5431 attrs = cellattr->attrs; | 5431 attrs = cellattr->attrs; |
5432 fg = cellattr->fg; | 5432 fg = cellattr->fg; |
5433 bg = cellattr->bg; | 5433 bg = cellattr->bg; |
5434 len = MB_PTR2LEN(p); | 5434 len = mb_ptr2len(p); |
5435 mch_memmove(mbs, p, len); | 5435 mch_memmove(mbs, p, len); |
5436 mbs[len] = NUL; | 5436 mbs[len] = NUL; |
5437 p += len; | 5437 p += len; |
5438 } | 5438 } |
5439 else | 5439 else |