[vim/vim] Fix warning message when folding disabled. (PR #17557)

5 views
Skip to first unread message

Hakkadaikon

unread,
Jun 16, 2025, 11:45:34 AM6/16/25
to vim/vim, Subscribed

Abstract

When Vim using -folding and g:sh_fold_enabled was set to 1 or more, the warning message "g:sh_fold_enabled=0" was displayed.
Displaying a warning after initializing variables(g:sh_fold_enabled) can be confusing.
So we changed a warning before initializing variables.

Repro

  1. Comment out the following in src/features.h and build vim.
#ifdef FEAT_NORMAL
//# define FEAT_FOLDING
#endif
  1. Build & install vim.
./configure
make -j4
sudo make install
  1. Set "let g:sh_fold_enabled= 7" in .vimrc

  2. Open the shell script (*.sh)

See

#10701

Screen shot (after)

image.png (view on web)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/17557

Commit Summary

  • e177ce4 #10701 Fix warning message when folding disabled.

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17557@github.com>

Christian Brabandt

unread,
Jun 16, 2025, 1:57:15 PM6/16/25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#17557)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17557/c2977523021@github.com>

Christian Brabandt

unread,
Jun 16, 2025, 1:57:18 PM6/16/25
to vim/vim, Subscribed

Closed #17557 via 152a450.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17557/issue_event/18175482670@github.com>

Hakkadaikon

unread,
Jun 16, 2025, 2:04:07 PM6/16/25
to vim/vim, Subscribed
Hakkadaikon left a comment (vim/vim#17557)

I forgot to add a comment, thanks for correcting that. 🫂


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17557/c2977542043@github.com>

Reply all
Reply to author
Forward
0 new messages