mirror of
https://https.git.savannah.gnu.org/git/nano.git
synced 2026-01-26 16:09:15 +00:00
tweaks: rename a parameter, and invert its logic
This commit is contained in:
parent
e05b7a5cd5
commit
a195ba6cc0
@ -595,6 +595,6 @@ void restore_cursor_position_if_any(void)
|
||||
if (item && item->anchors)
|
||||
restore_anchors(item->anchors);
|
||||
if (item)
|
||||
goto_line_and_column(item->linenumber, item->columnnumber, FALSE);
|
||||
goto_line_and_column(item->linenumber, item->columnnumber, TRUE);
|
||||
}
|
||||
#endif /* ENABLE_HISTORIES */
|
||||
|
||||
@ -2589,7 +2589,7 @@ int main(int argc, char **argv)
|
||||
if (givenline != 0 || givencol != 0) {
|
||||
openfile->current = openfile->filetop;
|
||||
openfile->placewewant = 0;
|
||||
goto_line_and_column(givenline, givencol, FALSE);
|
||||
goto_line_and_column(givenline, givencol, TRUE);
|
||||
}
|
||||
#ifndef NANO_TINY
|
||||
else if (searchstring != NULL) {
|
||||
|
||||
@ -485,7 +485,7 @@ void ask_for_and_do_replacements(void);
|
||||
void goto_line_posx(ssize_t line, size_t pos_x);
|
||||
#endif
|
||||
void ask_for_line_and_column(bool retain_answer);
|
||||
void goto_line_and_column(ssize_t line, ssize_t column, bool interactive);
|
||||
void goto_line_and_column(ssize_t line, ssize_t column, bool hugfloor);
|
||||
void do_gotolinecolumn(void);
|
||||
#ifndef NANO_TINY
|
||||
void do_find_bracket(void);
|
||||
|
||||
@ -802,14 +802,14 @@ void ask_for_line_and_column(bool retain_answer)
|
||||
if (doublesign)
|
||||
line += openfile->current->lineno;
|
||||
|
||||
goto_line_and_column(line, column, TRUE);
|
||||
goto_line_and_column(line, column, FALSE);
|
||||
|
||||
adjust_viewport((*answer == ',') ? STATIONARY : CENTERING);
|
||||
refresh_needed = TRUE;
|
||||
}
|
||||
|
||||
/* Go to the specified line and column. (Note that both are one-based.) */
|
||||
void goto_line_and_column(ssize_t line, ssize_t column, bool interactive)
|
||||
void goto_line_and_column(ssize_t line, ssize_t column, bool hugfloor)
|
||||
{
|
||||
if (line == 0)
|
||||
line = openfile->current->lineno;
|
||||
@ -849,7 +849,7 @@ void goto_line_and_column(ssize_t line, ssize_t column, bool interactive)
|
||||
openfile->placewewant = breadth(openfile->current->data);
|
||||
#endif
|
||||
|
||||
if (interactive)
|
||||
if (!hugfloor)
|
||||
return;
|
||||
|
||||
int rows_from_tail;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user