mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
vim-patch:9.0.1997: Some unused code in move.c and string.c
Problem: Some unused code in move.c and string.c
Solution: Remove it
closes: vim/vim#13288
580c1fcb4a
Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
@@ -1313,7 +1313,6 @@ bool scrolldown(long line_count, int byfold)
|
|||||||
}
|
}
|
||||||
if (col > width2 && width2 > 0) {
|
if (col > width2 && width2 > 0) {
|
||||||
row += (int)col / width2;
|
row += (int)col / width2;
|
||||||
col = col % width2;
|
|
||||||
}
|
}
|
||||||
if (row >= curwin->w_height_inner) {
|
if (row >= curwin->w_height_inner) {
|
||||||
curwin->w_curswant = curwin->w_virtcol - (row - curwin->w_height_inner + 1) * width2;
|
curwin->w_curswant = curwin->w_virtcol - (row - curwin->w_height_inner + 1) * width2;
|
||||||
@@ -1518,7 +1517,6 @@ void adjust_skipcol(void)
|
|||||||
}
|
}
|
||||||
if (col > width2) {
|
if (col > width2) {
|
||||||
row += (int)col / width2;
|
row += (int)col / width2;
|
||||||
col = col % width2;
|
|
||||||
}
|
}
|
||||||
if (row >= curwin->w_height_inner) {
|
if (row >= curwin->w_height_inner) {
|
||||||
if (curwin->w_skipcol == 0) {
|
if (curwin->w_skipcol == 0) {
|
||||||
|
@@ -1079,7 +1079,7 @@ static int parse_fmt_types(const char ***ap_types, int *num_posarg, const char *
|
|||||||
any_arg = 1;
|
any_arg = 1;
|
||||||
CHECK_POS_ARG;
|
CHECK_POS_ARG;
|
||||||
}
|
}
|
||||||
} else if (ascii_isdigit((int)(*(arg = p)))) {
|
} else if (ascii_isdigit((int)(*p))) {
|
||||||
// size_t could be wider than unsigned int; make sure we treat
|
// size_t could be wider than unsigned int; make sure we treat
|
||||||
// argument like common implementations do
|
// argument like common implementations do
|
||||||
unsigned uj = (unsigned)(*p++ - '0');
|
unsigned uj = (unsigned)(*p++ - '0');
|
||||||
@@ -1126,7 +1126,7 @@ static int parse_fmt_types(const char ***ap_types, int *num_posarg, const char *
|
|||||||
any_arg = 1;
|
any_arg = 1;
|
||||||
CHECK_POS_ARG;
|
CHECK_POS_ARG;
|
||||||
}
|
}
|
||||||
} else if (ascii_isdigit((int)(*(arg = p)))) {
|
} else if (ascii_isdigit((int)(*p))) {
|
||||||
// size_t could be wider than unsigned int; make sure we
|
// size_t could be wider than unsigned int; make sure we
|
||||||
// treat argument like common implementations do
|
// treat argument like common implementations do
|
||||||
unsigned uj = (unsigned)(*p++ - '0');
|
unsigned uj = (unsigned)(*p++ - '0');
|
||||||
@@ -1155,7 +1155,7 @@ static int parse_fmt_types(const char ***ap_types, int *num_posarg, const char *
|
|||||||
p++;
|
p++;
|
||||||
if (length_modifier == 'l' && *p == 'l') {
|
if (length_modifier == 'l' && *p == 'l') {
|
||||||
// double l = long long
|
// double l = long long
|
||||||
length_modifier = 'L';
|
// length_modifier = 'L';
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user