read_file()
- Remove apparently unneeded logic to handle a case where
current is NULL, since it shouldn't be NULL there. (DLR)
+- nano.c:
+ do_verbatim_input()
+ - Move to text.c, since it's an advanced text-based operation.
+ (DLR)
- nano.h:
- Readd MIN_EDITOR_COLS #define. (DLR)
- rcfile.c:
statusbar(_("Sorry, support for this function has been disabled"));
}
-void do_verbatim_input(void)
-{
- int *kbinput;
- size_t kbinput_len, i;
- char *output;
-
- statusbar(_("Verbatim Input"));
-
- /* If constant cursor position display is on, make sure the current
- * cursor position will be properly displayed on the statusbar. */
- if (ISSET(CONST_UPDATE))
- do_cursorpos(TRUE);
-
- /* Read in all the verbatim characters. */
- kbinput = get_verbatim_kbinput(edit, &kbinput_len);
-
- /* Display all the verbatim characters at once, not filtering out
- * control characters. */
- output = charalloc(kbinput_len + 1);
-
- for (i = 0; i < kbinput_len; i++)
- output[i] = (char)kbinput[i];
- output[i] = '\0';
-
- do_output(output, kbinput_len, TRUE);
-
- free(output);
-}
-
void do_exit(void)
{
int i;
int no_more_space(void);
int no_help(void);
void nano_disabled_msg(void);
-void do_verbatim_input(void);
void do_exit(void);
void signal_init(void);
void handle_hupterm(int signal);
#ifndef NANO_SMALL
void do_wordlinechar_count(void);
#endif
+void do_verbatim_input(void);
/* Public functions in utils.c. */
int digits(size_t n);
(unsigned long)chars);
}
#endif /* !NANO_SMALL */
+
+void do_verbatim_input(void)
+{
+ int *kbinput;
+ size_t kbinput_len, i;
+ char *output;
+
+ statusbar(_("Verbatim Input"));
+
+ /* If constant cursor position display is on, make sure the current
+ * cursor position will be properly displayed on the statusbar. */
+ if (ISSET(CONST_UPDATE))
+ do_cursorpos(TRUE);
+
+ /* Read in all the verbatim characters. */
+ kbinput = get_verbatim_kbinput(edit, &kbinput_len);
+
+ /* Display all the verbatim characters at once, not filtering out
+ * control characters. */
+ output = charalloc(kbinput_len + 1);
+
+ for (i = 0; i < kbinput_len; i++)
+ output[i] = (char)kbinput[i];
+ output[i] = '\0';
+
+ do_output(output, kbinput_len, TRUE);
+
+ free(output);
+}