diff options
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/vi.c b/editors/vi.c index a24b72303..82f302dca 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -1783,23 +1783,23 @@ static int st_test(char *p, int type, int dir, char *tested) | |||
1783 | 1783 | ||
1784 | if (type == S_BEFORE_WS) { | 1784 | if (type == S_BEFORE_WS) { |
1785 | c = ci; | 1785 | c = ci; |
1786 | test = ((!isspace(c)) || c == '\n'); | 1786 | test = (!isspace(c) || c == '\n'); |
1787 | } | 1787 | } |
1788 | if (type == S_TO_WS) { | 1788 | if (type == S_TO_WS) { |
1789 | c = c0; | 1789 | c = c0; |
1790 | test = ((!isspace(c)) || c == '\n'); | 1790 | test = (!isspace(c) || c == '\n'); |
1791 | } | 1791 | } |
1792 | if (type == S_OVER_WS) { | 1792 | if (type == S_OVER_WS) { |
1793 | c = c0; | 1793 | c = c0; |
1794 | test = ((isspace(c))); | 1794 | test = isspace(c); |
1795 | } | 1795 | } |
1796 | if (type == S_END_PUNCT) { | 1796 | if (type == S_END_PUNCT) { |
1797 | c = ci; | 1797 | c = ci; |
1798 | test = ((ispunct(c))); | 1798 | test = ispunct(c); |
1799 | } | 1799 | } |
1800 | if (type == S_END_ALNUM) { | 1800 | if (type == S_END_ALNUM) { |
1801 | c = ci; | 1801 | c = ci; |
1802 | test = ((isalnum(c)) || c == '_'); | 1802 | test = (isalnum(c) || c == '_'); |
1803 | } | 1803 | } |
1804 | *tested = c; | 1804 | *tested = c; |
1805 | return test; | 1805 | return test; |