]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1373: 'completeopt' checking logic can be simplified v9.1.1373
authorglepnir <glephunter@gmail.com>
Thu, 8 May 2025 21:05:10 +0000 (23:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 8 May 2025 21:05:10 +0000 (23:05 +0200)
commitc3fbaa086e338486673d4cffbcbd18466ad2ac09
treeca8d9243c0967d1133b30cfab1d5444398db3746
parent1eb8d0873891ec1e6b458a30194c7bbc7d90d26e
patch 9.1.1373: 'completeopt' checking logic can be simplified

Problem:  Flag checking logic uses a temporary variable and multiple
          bitwise operations in insexpand.c
Solution: Consolidate into a single equality check using bitwise OR and
          comparison (glepnir)

closes: #17276

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/insexpand.c
src/version.c