diff --git a/ChangeLog b/ChangeLog index 166403e2a4594b6fef50af7d6fad813ba0b11a89..49e0adb89498b0d470b4a821ed5137346ddc0a9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ * src/global.c (strtosc): Fix compilation with --enable-tiny --enable-histories --enable-nanorc. * src/text.c: Fix compilation with --enable-tiny --enable-wrapping. + * src/files.c (do_insertfile): Fix compilation with --enable-tiny + --enable-histories --enable-multibuffer. 2014-06-19 Benno Schulenberg <bensberg@justemail.net> * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()' diff --git a/src/files.c b/src/files.c index ac2a3c84cc0d65d9a36e9d4c6a8ed4a4abc4b516..da2cc469c1f2a355cda2e5c7fa00c8449da5fabf 100644 --- a/src/files.c +++ b/src/files.c @@ -1191,8 +1191,11 @@ void do_insertfile( display_buffer(); ssize_t savedposline, savedposcol; - if (!execute && ISSET(POS_HISTORY) - && check_poshistory(answer, &savedposline, &savedposcol)) + if (ISSET(POS_HISTORY) && +#ifndef NANO_TINY + !execute && +#endif + check_poshistory(answer, &savedposline, &savedposcol)) do_gotolinecolumn(savedposline, savedposcol, FALSE, FALSE, FALSE, FALSE); } else #endif