Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 3b6774e

Browse files
authored
Merge pull request #253 from kristijanhusak/fix/smart-case-implementation
Fix smart and ignore case implementation to work the same way as built in.
2 parents cd5c489 + 1cb7e96 commit 3b6774e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/completion/matching.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ local M = {}
66
local function setup_case(prefix, word)
77
local ignore_case = opt.get_option('matching_ignore_case') == 1
88

9-
if not ignore_case and opt.get_option('matching_smart_case') == 1 and not prefix:match('[A-Z]') then
10-
ignore_case = true
9+
if ignore_case and opt.get_option('matching_smart_case') == 1 and prefix:match('[A-Z]') then
10+
ignore_case = false
1111
end
1212

1313
if ignore_case then

0 commit comments

Comments
 (0)