aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2020-11-06 03:37:15 +0100
committerLuK1337 <priv.luk@gmail.com>2020-11-06 03:38:44 +0100
commit67ac008cbde36b2991a4fb5e5c9063d49b733ad1 (patch)
tree8521424f8b22432a96247dacc4b0a7b6d21fdc92
parentf9d314de2d3cb6162eeceae927fe1d55f8d08b0f (diff)
downloadandroid_external_nano-lineage-18.1.tar.gz
android_external_nano-lineage-18.1.tar.bz2
android_external_nano-lineage-18.1.zip
This reverts commit 0e6d693dc82603bc33a8eff35e57eff5cef71aa0 and instead fixes the related issue properly(-ish). Change-Id: I4ee700407e01f756284a907e93f79d989764c347
-rw-r--r--src/nano.c8
-rw-r--r--src/winio.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/nano.c b/src/nano.c
index 522c31d0..5c0802cb 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -225,7 +225,7 @@ void restore_terminal(void)
{
curs_set(1);
endwin();
-#ifndef NANO_TINY
+#if 0
printf("\x1B[?2004l");
fflush(stdout);
#endif
@@ -1222,7 +1222,7 @@ void terminal_init(void)
#endif
disable_kb_interrupt();
-#ifndef NANO_TINY
+#if 0
/* Tell the terminal to enable bracketed pastes. */
printf("\x1B[?2004h");
fflush(stdout);
@@ -1383,7 +1383,7 @@ bool okay_for_view(const keystruct *shortcut)
return (item == NULL || item->viewok);
}
-#if 0
+#ifndef NANO_TINY
/* Read in all waiting input bytes and paste them into the buffer in one go. */
void suck_up_input_and_paste_it(void)
{
@@ -1651,7 +1651,7 @@ void process_a_keystroke(void)
shortcut->func == do_backspace))
update_line(openfile->current, openfile->current_x);
-#if 0
+#ifndef NANO_TINY
if (bracketed_paste)
suck_up_input_and_paste_it();
#endif
diff --git a/src/winio.c b/src/winio.c
index a174e37b..d4ad118d 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1453,7 +1453,7 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count)
if (!ISSET(RAW_SEQUENCES))
keypad(win, FALSE);
-#ifndef NANO_TINY
+#if 0
/* Turn bracketed-paste mode off. */
printf("\x1B[?2004l");
fflush(stdout);
@@ -1476,7 +1476,7 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count)
linger_after_escape = FALSE;
-#ifndef NANO_TINY
+#if 0
/* Turn bracketed-paste mode back on. */
printf("\x1B[?2004h");
fflush(stdout);