still more breakage fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2852 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
222b201afe
commit
e5c7e928c9
|
@ -15,9 +15,9 @@ CVS code -
|
||||||
Accordingly, remove the globals. Changes to pretty much
|
Accordingly, remove the globals. Changes to pretty much
|
||||||
every function. Rename global_init() window_size_init(),
|
every function. Rename global_init() window_size_init(),
|
||||||
rename add_open_file() make_new_buffer(), rename load_buffer()
|
rename add_open_file() make_new_buffer(), rename load_buffer()
|
||||||
open_buffer(), rename load_open_file() load_buffer(), rename
|
open_buffer(), rename load_open_file() display_buffer(),
|
||||||
open_prevnext_file() switch_to_prevnext_buffer(), rename
|
rename open_prevnext_file() switch_to_prevnext_buffer(),
|
||||||
open_prevfile_void() switch_to_prev_buffer(), rename
|
rename open_prevfile_void() switch_to_prev_buffer(), rename
|
||||||
open_nextfile_void() switch_to_next_buffer(), rename
|
open_nextfile_void() switch_to_next_buffer(), rename
|
||||||
write_marked() write_marked_file(), remove load_file(), rename
|
write_marked() write_marked_file(), remove load_file(), rename
|
||||||
cancel_fork() cancel_command(), rename open_pipe()
|
cancel_fork() cancel_command(), rename open_pipe()
|
||||||
|
|
17
src/files.c
17
src/files.c
|
@ -215,15 +215,20 @@ void open_buffer(const char *filename)
|
||||||
* to the first line of the buffer. */
|
* to the first line of the buffer. */
|
||||||
if (rc != -1 && new_buffer)
|
if (rc != -1 && new_buffer)
|
||||||
openfile->current = openfile->fileage;
|
openfile->current = openfile->fileage;
|
||||||
|
|
||||||
|
#ifdef ENABLE_COLOR
|
||||||
|
/* If we're loading into a new buffer, update the buffer's
|
||||||
|
* associated colors, if applicable. */
|
||||||
|
if (new_buffer)
|
||||||
|
update_color();
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update the screen to account for the current buffer. */
|
/* Update the screen to account for the current buffer. */
|
||||||
void load_buffer(void)
|
void display_buffer(void)
|
||||||
{
|
{
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
#ifdef ENABLE_COLOR
|
|
||||||
update_color();
|
|
||||||
#endif
|
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,7 +255,7 @@ void switch_to_prevnext_buffer(bool next_buf)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Update the screen to account for the current buffer. */
|
/* Update the screen to account for the current buffer. */
|
||||||
load_buffer();
|
display_buffer();
|
||||||
|
|
||||||
/* Indicate the switch on the statusbar. */
|
/* Indicate the switch on the statusbar. */
|
||||||
statusbar(_("Switched to %s"),
|
statusbar(_("Switched to %s"),
|
||||||
|
@ -794,7 +799,7 @@ void do_insertfile(
|
||||||
if (ISSET(MULTIBUFFER))
|
if (ISSET(MULTIBUFFER))
|
||||||
/* Update the screen to account for the current
|
/* Update the screen to account for the current
|
||||||
* buffer. */
|
* buffer. */
|
||||||
load_buffer();
|
display_buffer();
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
|
@ -4714,17 +4714,12 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
display_main_list();
|
display_main_list();
|
||||||
|
|
||||||
titlebar(NULL);
|
|
||||||
#ifdef ENABLE_COLOR
|
|
||||||
update_color();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
/* Return here after a SIGWINCH. */
|
/* Return here after a SIGWINCH. */
|
||||||
sigsetjmp(jmpbuf, 1);
|
sigsetjmp(jmpbuf, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
edit_refresh();
|
display_buffer();
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
bool meta_key, func_key, s_or_t, ran_func, finished;
|
bool meta_key, func_key, s_or_t, ran_func, finished;
|
||||||
|
|
|
@ -243,7 +243,7 @@ void initialize_buffer(void);
|
||||||
void reinitialize_buffer(void);
|
void reinitialize_buffer(void);
|
||||||
#endif
|
#endif
|
||||||
void open_buffer(const char *filename);
|
void open_buffer(const char *filename);
|
||||||
void load_buffer(void);
|
void display_buffer(void);
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
void switch_to_prevnext_buffer(bool next);
|
void switch_to_prevnext_buffer(bool next);
|
||||||
void switch_to_prev_buffer_void(void);
|
void switch_to_prev_buffer_void(void);
|
||||||
|
|
Loading…
Reference in New Issue