mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1166: code is indented more than necessary
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11792)
This commit is contained in:
committed by
Bram Moolenaar
parent
765d82a657
commit
1cfb14aa97
@@ -1533,29 +1533,30 @@ get_digraph(
|
||||
c = plain_vgetc();
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
if (c != ESC) // ESC cancels CTRL-K
|
||||
|
||||
if (c == ESC) // ESC cancels CTRL-K
|
||||
return NUL;
|
||||
|
||||
if (IS_SPECIAL(c)) // insert special key code
|
||||
return c;
|
||||
if (cmdline)
|
||||
{
|
||||
if (IS_SPECIAL(c)) // insert special key code
|
||||
return c;
|
||||
if (cmdline)
|
||||
{
|
||||
if (char2cells(c) == 1
|
||||
if (char2cells(c) == 1
|
||||
#if defined(FEAT_CRYPT) || defined(FEAT_EVAL)
|
||||
&& cmdline_star == 0
|
||||
&& cmdline_star == 0
|
||||
#endif
|
||||
)
|
||||
putcmdline(c, TRUE);
|
||||
}
|
||||
else
|
||||
add_to_showcmd(c);
|
||||
++no_mapping;
|
||||
++allow_keys;
|
||||
cc = plain_vgetc();
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
if (cc != ESC) // ESC cancels CTRL-K
|
||||
return digraph_get(c, cc, TRUE);
|
||||
)
|
||||
putcmdline(c, TRUE);
|
||||
}
|
||||
else
|
||||
add_to_showcmd(c);
|
||||
++no_mapping;
|
||||
++allow_keys;
|
||||
cc = plain_vgetc();
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
if (cc != ESC) // ESC cancels CTRL-K
|
||||
return digraph_get(c, cc, TRUE);
|
||||
return NUL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user