Mercurial > vim
comparison src/ui.c @ 12716:351cf7c67bbe v8.0.1236
patch 8.0.1236: Mac features are confusing
commit https://github.com/vim/vim/commit/d057301b1f28736f094affa17b190244ad56e8d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 28 21:11:06 2017 +0200
patch 8.0.1236: Mac features are confusing
Problem: Mac features are confusing.
Solution: Make feature names more consistent, add "osxdarwin". Rename
feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Oct 2017 21:15:35 +0200 |
parents | f62696bd1a9f |
children | 5cb08ec9d4cf |
comparison
equal
deleted
inserted
replaced
12715:279ec0abb4ac | 12716:351cf7c67bbe |
---|---|
1746 } | 1746 } |
1747 | 1747 |
1748 void | 1748 void |
1749 fill_input_buf(int exit_on_error UNUSED) | 1749 fill_input_buf(int exit_on_error UNUSED) |
1750 { | 1750 { |
1751 #if defined(UNIX) || defined(VMS) || defined(MACOS_X_UNIX) | 1751 #if defined(UNIX) || defined(VMS) || defined(MACOS_X) |
1752 int len; | 1752 int len; |
1753 int try; | 1753 int try; |
1754 static int did_read_something = FALSE; | 1754 static int did_read_something = FALSE; |
1755 # ifdef FEAT_MBYTE | 1755 # ifdef FEAT_MBYTE |
1756 static char_u *rest = NULL; /* unconverted rest of previous read */ | 1756 static char_u *rest = NULL; /* unconverted rest of previous read */ |
1770 { | 1770 { |
1771 gui_mch_update(); | 1771 gui_mch_update(); |
1772 return; | 1772 return; |
1773 } | 1773 } |
1774 #endif | 1774 #endif |
1775 #if defined(UNIX) || defined(VMS) || defined(MACOS_X_UNIX) | 1775 #if defined(UNIX) || defined(VMS) || defined(MACOS_X) |
1776 if (vim_is_input_buf_full()) | 1776 if (vim_is_input_buf_full()) |
1777 return; | 1777 return; |
1778 /* | 1778 /* |
1779 * Fill_input_buf() is only called when we really need a character. | 1779 * Fill_input_buf() is only called when we really need a character. |
1780 * If we can't get any, but there is some in the buffer, just return. | 1780 * If we can't get any, but there is some in the buffer, just return. |