Mercurial > vim
comparison src/ui.c @ 8281:74b15ed0a259 v7.4.1433
commit https://github.com/vim/vim/commit/85b11769ab507c7df93f319fd964fa579701b76b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 18:13:23 2016 +0100
patch 7.4.1433
Problem: The Sniff interface is no longer useful, the tool has not been
available for may years.
Solution: Delete the Sniff interface and related code.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 18:15:07 +0100 |
parents | 6d221d623c8e |
children | 6099e8185045 |
comparison
equal
deleted
inserted
replaced
8280:65bed5ff0ba6 | 8281:74b15ed0a259 |
---|---|
1625 } | 1625 } |
1626 | 1626 |
1627 #if defined(FEAT_GUI) \ | 1627 #if defined(FEAT_GUI) \ |
1628 || defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE) \ | 1628 || defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE) \ |
1629 || defined(FEAT_XCLIPBOARD) || defined(VMS) \ | 1629 || defined(FEAT_XCLIPBOARD) || defined(VMS) \ |
1630 || defined(FEAT_SNIFF) || defined(FEAT_CLIENTSERVER) \ | 1630 || defined(FEAT_CLIENTSERVER) \ |
1631 || defined(PROTO) | 1631 || defined(PROTO) |
1632 /* | 1632 /* |
1633 * Add the given bytes to the input buffer | 1633 * Add the given bytes to the input buffer |
1634 * Special keys start with CSI. A real CSI must have been translated to | 1634 * Special keys start with CSI. A real CSI must have been translated to |
1635 * CSI KS_EXTRA KE_CSI. K_SPECIAL doesn't require translation. | 1635 * CSI KS_EXTRA KE_CSI. K_SPECIAL doesn't require translation. |
1770 ; | 1770 ; |
1771 len = inbufcount; | 1771 len = inbufcount; |
1772 inbufcount = 0; | 1772 inbufcount = 0; |
1773 # else | 1773 # else |
1774 | 1774 |
1775 # ifdef FEAT_SNIFF | 1775 # ifdef FEAT_MBYTE |
1776 if (sniff_request_waiting) | |
1777 { | |
1778 add_to_input_buf((char_u *)"\233sniff",6); /* results in K_SNIFF */ | |
1779 sniff_request_waiting = 0; | |
1780 want_sniff_request = 0; | |
1781 return; | |
1782 } | |
1783 # endif | |
1784 | |
1785 # ifdef FEAT_MBYTE | |
1786 if (rest != NULL) | 1776 if (rest != NULL) |
1787 { | 1777 { |
1788 /* Use remainder of previous call, starts with an invalid character | 1778 /* Use remainder of previous call, starts with an invalid character |
1789 * that may become valid when reading more. */ | 1779 * that may become valid when reading more. */ |
1790 if (restlen > INBUFLEN - inbufcount) | 1780 if (restlen > INBUFLEN - inbufcount) |
1804 } | 1794 } |
1805 inbufcount += unconverted; | 1795 inbufcount += unconverted; |
1806 } | 1796 } |
1807 else | 1797 else |
1808 unconverted = 0; | 1798 unconverted = 0; |
1809 #endif | 1799 # endif |
1810 | 1800 |
1811 len = 0; /* to avoid gcc warning */ | 1801 len = 0; /* to avoid gcc warning */ |
1812 for (try = 0; try < 100; ++try) | 1802 for (try = 0; try < 100; ++try) |
1813 { | 1803 { |
1814 # ifdef VMS | 1804 # ifdef VMS |