Mercurial > vim
comparison src/textformat.c @ 30645:101f08b49ed3 v9.0.0657
patch 9.0.0657: too many #ifdefs
Commit: https://github.com/vim/vim/commit/7904fa420eb577274c4c3711295240100167d495
Author: Martin Tournoij <martin@arp242.net>
Date: Tue Oct 4 16:28:45 2022 +0100
patch 9.0.0657: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Oct 2022 17:30:06 +0200 |
parents | 37aa9fd2ed72 |
children | 4eb7db656c4a |
comparison
equal
deleted
inserted
replaced
30644:0c102a723b9a | 30645:101f08b49ed3 |
---|---|
792 if (textwidth == 0 && curbuf->b_p_wm) | 792 if (textwidth == 0 && curbuf->b_p_wm) |
793 { | 793 { |
794 // The width is the window width minus 'wrapmargin' minus all the | 794 // The width is the window width minus 'wrapmargin' minus all the |
795 // things that add to the margin. | 795 // things that add to the margin. |
796 textwidth = curwin->w_width - curbuf->b_p_wm; | 796 textwidth = curwin->w_width - curbuf->b_p_wm; |
797 #ifdef FEAT_CMDWIN | |
798 if (cmdwin_type != 0) | 797 if (cmdwin_type != 0) |
799 textwidth -= 1; | 798 textwidth -= 1; |
800 #endif | |
801 #ifdef FEAT_FOLDING | 799 #ifdef FEAT_FOLDING |
802 textwidth -= curwin->w_p_fdc; | 800 textwidth -= curwin->w_p_fdc; |
803 #endif | 801 #endif |
804 #ifdef FEAT_SIGNS | 802 #ifdef FEAT_SIGNS |
805 if (signcolumn_on(curwin)) | 803 if (signcolumn_on(curwin)) |