Mercurial > vim
comparison src/ex_getln.c @ 16162:cd5c83115ec6 v8.1.1086
patch 8.1.1086: too many curly braces
commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 18:47:01 2019 +0100
patch 8.1.1086: too many curly braces
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 19:00:07 +0100 |
parents | 7fad90423bd2 |
children | a6cffc232b9d |
comparison
equal
deleted
inserted
replaced
16161:75fa84e2461b | 16162:cd5c83115ec6 |
---|---|
1027 cursorcmd(); /* set the cursor on the right spot */ | 1027 cursorcmd(); /* set the cursor on the right spot */ |
1028 | 1028 |
1029 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do | 1029 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do |
1030 * anything, such as stop completion. */ | 1030 * anything, such as stop completion. */ |
1031 do | 1031 do |
1032 { | |
1033 c = safe_vgetc(); | 1032 c = safe_vgetc(); |
1034 } while (c == K_IGNORE || c == K_NOP); | 1033 while (c == K_IGNORE || c == K_NOP); |
1035 | 1034 |
1036 if (KeyTyped) | 1035 if (KeyTyped) |
1037 { | 1036 { |
1038 some_key_typed = TRUE; | 1037 some_key_typed = TRUE; |
1039 #ifdef FEAT_RIGHTLEFT | 1038 #ifdef FEAT_RIGHTLEFT |
2831 while (p < (char_u *)line_ga.ga_data + line_ga.ga_len) | 2830 while (p < (char_u *)line_ga.ga_data + line_ga.ga_len) |
2832 { | 2831 { |
2833 if (*p == TAB) | 2832 if (*p == TAB) |
2834 { | 2833 { |
2835 do | 2834 do |
2836 { | |
2837 msg_putchar(' '); | 2835 msg_putchar(' '); |
2838 } while (++vcol % 8); | 2836 while (++vcol % 8); |
2839 ++p; | 2837 ++p; |
2840 } | 2838 } |
2841 else | 2839 else |
2842 { | 2840 { |
2843 len = MB_PTR2LEN(p); | 2841 len = MB_PTR2LEN(p); |
2906 msg_putchar('\n'); | 2904 msg_putchar('\n'); |
2907 else if (c1 == TAB) | 2905 else if (c1 == TAB) |
2908 { | 2906 { |
2909 /* Don't use chartabsize(), 'ts' can be different */ | 2907 /* Don't use chartabsize(), 'ts' can be different */ |
2910 do | 2908 do |
2911 { | |
2912 msg_putchar(' '); | 2909 msg_putchar(' '); |
2913 } while (++vcol % 8); | 2910 while (++vcol % 8); |
2914 } | 2911 } |
2915 else | 2912 else |
2916 { | 2913 { |
2917 msg_outtrans_len( | 2914 msg_outtrans_len( |
2918 ((char_u *)line_ga.ga_data) + line_ga.ga_len, len); | 2915 ((char_u *)line_ga.ga_data) + line_ga.ga_len, len); |