* src/files.c (has_valid_path): Be more specific in how a given path
is invalid. The change was improved by Rishabh Dave.
* doc/syntax/nanorc.nanorc: Show ^^ and M-^ as valid key names.
+ * src/prompt.c (do_statusbar_home): Make Home go always fully home.
2016-01-29 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (do_insertfile): Do display the buffer when configured
update_statusbar_line(answer, statusbar_x);
}
-/* Move to the beginning of the prompt text. If the SMART_HOME flag is
- * set, move to the first non-whitespace character of the prompt text if
- * we're not already there, or to the beginning of the prompt text if we
- * are. */
+/* Move to the beginning of the prompt text. */
void do_statusbar_home(void)
{
-#ifndef NANO_TINY
- if (ISSET(SMART_HOME)) {
- size_t statusbar_x_save = statusbar_x;
-
- statusbar_x = indent_length(answer);
-
- if (statusbar_x == statusbar_x_save ||
- statusbar_x == strlen(answer))
- statusbar_x = 0;
- } else
-#endif
- statusbar_x = 0;
-
+ statusbar_x = 0;
update_the_bar();
}