mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Merge consecutive identical 'if' statements
This commit is contained in:

committed by
Justin M. Keyes

parent
9927e99948
commit
a62a2b6250
@@ -1561,9 +1561,6 @@ int fkmap(int c)
|
|||||||
if (!curwin->w_cursor.col) {
|
if (!curwin->w_cursor.col) {
|
||||||
return ALEF_U_H;
|
return ALEF_U_H;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!p_ri) {
|
|
||||||
dec_cursor();
|
dec_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1595,9 +1592,6 @@ int fkmap(int c)
|
|||||||
if (!curwin->w_cursor.col) {
|
if (!curwin->w_cursor.col) {
|
||||||
return ALEF;
|
return ALEF;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!p_ri) {
|
|
||||||
dec_cursor();
|
dec_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1673,9 +1667,6 @@ int fkmap(int c)
|
|||||||
if (!curwin->w_cursor.col) {
|
if (!curwin->w_cursor.col) {
|
||||||
return TEE;
|
return TEE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!p_ri) {
|
|
||||||
dec_cursor();
|
dec_cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1729,14 +1729,14 @@ failed:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set_options)
|
if (set_options) {
|
||||||
save_file_ff(curbuf); /* remember the current file format */
|
// Remember the current file format.
|
||||||
|
save_file_ff(curbuf);
|
||||||
/* If editing a new file: set 'fenc' for the current buffer.
|
// If editing a new file: set 'fenc' for the current buffer.
|
||||||
* Also for ":read ++edit file". */
|
// Also for ":read ++edit file".
|
||||||
if (set_options)
|
|
||||||
set_string_option_direct((char_u *)"fenc", -1, fenc,
|
set_string_option_direct((char_u *)"fenc", -1, fenc,
|
||||||
OPT_FREE|OPT_LOCAL, 0);
|
OPT_FREE | OPT_LOCAL, 0);
|
||||||
|
}
|
||||||
if (fenc_alloced)
|
if (fenc_alloced)
|
||||||
free(fenc);
|
free(fenc);
|
||||||
# ifdef USE_ICONV
|
# ifdef USE_ICONV
|
||||||
|
Reference in New Issue
Block a user