Commit c6908f28 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

minor bits

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 12 additions and 8 deletions
+12 -8
...@@ -38,6 +38,9 @@ CVS code - ...@@ -38,6 +38,9 @@ CVS code -
do_insertfile() do_insertfile()
- Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef. - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef.
(DLR) (DLR)
- Save the already-typed answer when switching from "Insert
File" to "Execute Command" mode via Ctrl-X, just in case we
started typing a command before switching. (DLR)
add_open_files() add_open_files()
- Make the saving of marked status in open_files->file_flags - Make the saving of marked status in open_files->file_flags
work properly again; a tweak to the ISSET() macro in 1.3.0 work properly again; a tweak to the ISSET() macro in 1.3.0
...@@ -152,6 +155,9 @@ CVS code - ...@@ -152,6 +155,9 @@ CVS code -
efficiency tweaks. (David Benbennick) DLR: Tweak to follow efficiency tweaks. (David Benbennick) DLR: Tweak to follow
the old behavior of adding non-blank strings entered at the the old behavior of adding non-blank strings entered at the
"Replace: " prompt to the search history. (DLR) "Replace: " prompt to the search history. (DLR)
do_gotoline()
- Simplify the edit_update() call depending on the value of
save_pos. (David Benbennick)
do_bracket() do_bracket()
- Add efficiency tweaks. (David Benbennick) DLR: Remove - Add efficiency tweaks. (David Benbennick) DLR: Remove
reliance on the hardcoded bracket string length; instead, only reliance on the hardcoded bracket string length; instead, only
......
...@@ -501,7 +501,7 @@ int do_insertfile(int loading_file) ...@@ -501,7 +501,7 @@ int do_insertfile(int loading_file)
#endif /* ENABLE_MULTIBUFFER */ #endif /* ENABLE_MULTIBUFFER */
if (i == NANO_EXTCMD_KEY) { if (i == NANO_EXTCMD_KEY) {
int ts = statusq(TRUE, extcmd_list, "", NULL, int ts = statusq(TRUE, extcmd_list, answer, NULL,
_("Command to execute")); _("Command to execute"));
if (ts == -1 || answer == NULL || answer[0] == '\0') { if (ts == -1 || answer == NULL || answer[0] == '\0') {
statusbar(_("Cancelled")); statusbar(_("Cancelled"));
......
...@@ -829,7 +829,7 @@ int do_gotoline(int line, int save_pos) ...@@ -829,7 +829,7 @@ int do_gotoline(int line, int save_pos)
line = atoi(answer); line = atoi(answer);
/* Bounds check */ /* Bounds check. */
if (line <= 0) { if (line <= 0) {
statusbar(_("Come on, be reasonable")); statusbar(_("Come on, be reasonable"));
display_main_list(); display_main_list();
...@@ -842,12 +842,10 @@ int do_gotoline(int line, int save_pos) ...@@ -842,12 +842,10 @@ int do_gotoline(int line, int save_pos)
current_x = 0; current_x = 0;
/* if save_pos is nonzero, don't change the cursor position when /* If save_pos is nonzero, don't change the cursor position when
updating the edit window */ * updating the edit window. */
if (save_pos) edit_update(current, save_pos ? NONE : CENTER);
edit_update(current, NONE);
else
edit_update(current, CENTER);
placewewant = 0; placewewant = 0;
display_main_list(); display_main_list();
return 1; return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment