Mercurial > vim
comparison src/structs.h @ 33430:18f4a04384f3 v9.0.1973
patch 9.0.1973: Clean up cmdline option completion code
Commit: https://github.com/vim/vim/commit/6d113472601fa6f3a444a95ef7b11d4309215117
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Mon Oct 2 21:38:39 2023 +0200
patch 9.0.1973: Clean up cmdline option completion code
Problem: Clean up cmdline option completion code
Solution: Fix various minor problems
- Fix manual array size calculations to just use `ARRAY_LENGTH()`.
- Fix unintentional typo in comments due to copy-paste error.
- Fix assert_equal() usages to pass the expected value to first
parameter instead of 2nd one to avoid confusion.
- Fix signed vs unsigned warnings
- Correct misplaced comments about set_op_T and set_prefix_T
and fix a typo in another comment
closes: #13249
closes: #13237
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Oct 2023 21:45:07 +0200 |
parents | aa7cd2253130 |
children | 508dfc0c261c |
comparison
equal
deleted
inserted
replaced
33429:c6871290807e | 33430:18f4a04384f3 |
---|---|
586 XP_PREFIX_NONE, // prefix not used | 586 XP_PREFIX_NONE, // prefix not used |
587 XP_PREFIX_NO, // "no" prefix for bool option | 587 XP_PREFIX_NO, // "no" prefix for bool option |
588 XP_PREFIX_INV, // "inv" prefix for bool option | 588 XP_PREFIX_INV, // "inv" prefix for bool option |
589 } xp_prefix_T; | 589 } xp_prefix_T; |
590 | 590 |
591 /* | |
592 * :set operator types | |
593 */ | |
591 typedef enum { | 594 typedef enum { |
592 OP_NONE = 0, | 595 OP_NONE = 0, |
593 OP_ADDING, // "opt+=arg" | 596 OP_ADDING, // "opt+=arg" |
594 OP_PREPENDING, // "opt^=arg" | 597 OP_PREPENDING, // "opt^=arg" |
595 OP_REMOVING, // "opt-=arg" | 598 OP_REMOVING, // "opt-=arg" |