+2013-04-12 Chris Allegretta <chrisa@asty.org>
+ * src/files.c (do_insertfile): Check for saved cursor position when inserting a
+ file as well. Fixes Savannah bug 38600 reported by Craig Barnes.
+
2013-04-07 Michael Berg <mike@berg-net.us>
* do_cut_text - Fix copying (not cutting) text setting Modified state. Fixes
issue reported by Benno Schulenberg.
#endif
#ifdef ENABLE_MULTIBUFFER
- if (ISSET(MULTIBUFFER))
+ if (ISSET(MULTIBUFFER)) {
/* Update the screen to account for the current
* buffer. */
+ ssize_t savedposline, savedposcol;
+
display_buffer();
- else
+ if (!execute && ISSET(POS_HISTORY)
+ && check_poshistory(answer, &savedposline, &savedposcol))
+ do_gotolinecolumn(savedposline, savedposcol, FALSE, FALSE, FALSE, FALSE);
+ } else
#endif
{
filestruct *top_save = openfile->fileage;
if (hist == NULL) {
if (errno != ENOENT) {
/* Don't save history when we quit. */
- UNSET(HISTORYLOG);
+ UNSET(POS_HISTORY);
history_error(N_("Error reading %s: %s"), nanohist,
strerror(errno));
}