Mercurial > vim
comparison src/message.c @ 29090:9b292596a332 v8.2.5066
patch 8.2.5066: timer_create is not available on every Mac system
Commit: https://github.com/vim/vim/commit/aca12fd89b082dd9cc12ae085a84f1805747bbdf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 7 10:16:15 2022 +0100
patch 8.2.5066: timer_create is not available on every Mac system
Problem: Timer_create is not available on every Mac system. (Hisashi T
Fujinaka)
Solution: Adjust #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 07 Jun 2022 11:30:04 +0200 |
parents | fea88e555652 |
children | cff23287478f |
comparison
equal
deleted
inserted
replaced
29089:71d4dc25eb4b | 29090:9b292596a332 |
---|---|
1879 trail = s + STRLEN(s); | 1879 trail = s + STRLEN(s); |
1880 while (trail > s && VIM_ISWHITE(trail[-1])) | 1880 while (trail > s && VIM_ISWHITE(trail[-1])) |
1881 --trail; | 1881 --trail; |
1882 } | 1882 } |
1883 // find end of leading whitespace | 1883 // find end of leading whitespace |
1884 if (curwin->w_lcs_chars.lead) | 1884 if (curwin->w_lcs_chars.lead || curwin->w_lcs_chars.leadmultispace != NULL) |
1885 { | 1885 { |
1886 lead = s; | 1886 lead = s; |
1887 while (VIM_ISWHITE(lead[0])) | 1887 while (VIM_ISWHITE(lead[0])) |
1888 lead++; | 1888 lead++; |
1889 // in a line full of spaces all of them are treated as trailing | 1889 // in a line full of spaces all of them are treated as trailing |
1991 // the same in plain text. | 1991 // the same in plain text. |
1992 attr = HL_ATTR(HLF_8); | 1992 attr = HL_ATTR(HLF_8); |
1993 } | 1993 } |
1994 else if (c == ' ') | 1994 else if (c == ' ') |
1995 { | 1995 { |
1996 if (lead != NULL && s <= lead) | 1996 if (list && lead != NULL && s <= lead && in_multispace |
1997 && curwin->w_lcs_chars.leadmultispace != NULL) | |
1998 { | |
1999 c = curwin->w_lcs_chars.leadmultispace[multispace_pos++]; | |
2000 if (curwin->w_lcs_chars.leadmultispace[multispace_pos] == NUL) | |
2001 multispace_pos = 0; | |
2002 attr = HL_ATTR(HLF_8); | |
2003 } | |
2004 else if (lead != NULL && s <= lead && curwin->w_lcs_chars.lead) | |
1997 { | 2005 { |
1998 c = curwin->w_lcs_chars.lead; | 2006 c = curwin->w_lcs_chars.lead; |
1999 attr = HL_ATTR(HLF_8); | 2007 attr = HL_ATTR(HLF_8); |
2000 } | 2008 } |
2001 else if (trail != NULL && s > trail) | 2009 else if (trail != NULL && s > trail) |
2002 { | 2010 { |
2003 c = curwin->w_lcs_chars.trail; | 2011 c = curwin->w_lcs_chars.trail; |
2012 attr = HL_ATTR(HLF_8); | |
2013 } | |
2014 else if (list && lead != NULL && s <= lead && in_multispace | |
2015 && curwin->w_lcs_chars.leadmultispace != NULL) | |
2016 { | |
2017 c = curwin->w_lcs_chars.leadmultispace[multispace_pos++]; | |
2018 if (curwin->w_lcs_chars.leadmultispace[multispace_pos] == NUL) | |
2019 multispace_pos = 0; | |
2004 attr = HL_ATTR(HLF_8); | 2020 attr = HL_ATTR(HLF_8); |
2005 } | 2021 } |
2006 else if (list && in_multispace | 2022 else if (list && in_multispace |
2007 && curwin->w_lcs_chars.multispace != NULL) | 2023 && curwin->w_lcs_chars.multispace != NULL) |
2008 { | 2024 { |