Mercurial > vim
comparison src/gui.c @ 29417:1d47d224a1cc v9.0.0050
patch 9.0.0050: split else-of is confusing
Commit: https://github.com/vim/vim/commit/b26592a84c8f578c8fbe83cf02ebb47453de1683
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 12 17:34:31 2022 +0100
patch 9.0.0050: split else-of is confusing
Problem: Split else-of is confusing.
Solution: Join the lines. (closes https://github.com/vim/vim/issues/10696)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Jul 2022 18:45:04 +0200 |
parents | 60977de70684 |
children | 89e1d67814a9 |
comparison
equal
deleted
inserted
replaced
29416:7149302a99e0 | 29417:1d47d224a1cc |
---|---|
2129 this_len += (*mb_ptr2len)(s + this_len); | 2129 this_len += (*mb_ptr2len)(s + this_len); |
2130 } | 2130 } |
2131 if (this_len > len) | 2131 if (this_len > len) |
2132 this_len = len; // don't include following composing char | 2132 this_len = len; // don't include following composing char |
2133 } | 2133 } |
2134 else | 2134 else if (gui.col + len > Columns) |
2135 if (gui.col + len > Columns) | |
2136 this_len = Columns - gui.col; | 2135 this_len = Columns - gui.col; |
2137 else | 2136 else |
2138 this_len = len; | 2137 this_len = len; |
2139 | 2138 |
2140 (void)gui_outstr_nowrap(s, this_len, | 2139 (void)gui_outstr_nowrap(s, this_len, |