Mercurial > vim
comparison src/evalfunc.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 | fe5afdc03bd2 |
comparison
equal
deleted
inserted
replaced
18250:f1d9d3f76c98 | 18251:c8a53c0daeed |
---|---|
6452 | 6452 |
6453 set_last_csearch(c, csearch, utfc_ptr2len(csearch)); | 6453 set_last_csearch(c, csearch, utfc_ptr2len(csearch)); |
6454 } | 6454 } |
6455 else | 6455 else |
6456 set_last_csearch(PTR2CHAR(csearch), | 6456 set_last_csearch(PTR2CHAR(csearch), |
6457 csearch, MB_PTR2LEN(csearch)); | 6457 csearch, mb_ptr2len(csearch)); |
6458 } | 6458 } |
6459 | 6459 |
6460 di = dict_find(d, (char_u *)"forward", -1); | 6460 di = dict_find(d, (char_u *)"forward", -1); |
6461 if (di != NULL) | 6461 if (di != NULL) |
6462 set_csearch_direction((int)tv_get_number(&di->di_tv) | 6462 set_csearch_direction((int)tv_get_number(&di->di_tv) |