Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): add nil check for g:colors_name #1399

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Conversation

Jint-lzxy
Copy link
Collaborator

@Jint-lzxy Jint-lzxy commented Jan 18, 2025

This commit is a follow-up fix for #1369 (and potentially #1371), simplifying the change to a single line:

--- /dev/fd/14	2025-01-18 15:44:55
+++ /dev/fd/15	2025-01-18 15:44:55
@@ -1 +1 @@
-palette = vim.g.colors_name:find("catppuccin") and require("catppuccin.palettes").get_palette()
+palette = (vim.g.colors_name or ""):find("catppuccin") and require("catppuccin.palettes").get_palette()

This commit is a follow-up fix for #1369, simplifying the change to a single
line.

Signed-off-by: Jint-lzxy <[email protected]>
@ayamir ayamir merged commit 5c3d6e2 into main Jan 19, 2025
4 checks passed
@ayamir ayamir deleted the fix/colors_name-nil-check branch January 19, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants