aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2020-11-04 21:44:28 +0100
committerLuK1337 <priv.luk@gmail.com>2020-11-04 21:46:42 +0100
commitf9d314de2d3cb6162eeceae927fe1d55f8d08b0f (patch)
tree378184bfd66a8592f57572d67e342aac569fe17d
parentcc749f5b8250a806f400feadeb3b46145f139e36 (diff)
downloadandroid_external_nano-f9d314de2d3cb6162eeceae927fe1d55f8d08b0f.tar.gz
android_external_nano-f9d314de2d3cb6162eeceae927fe1d55f8d08b0f.tar.bz2
android_external_nano-f9d314de2d3cb6162eeceae927fe1d55f8d08b0f.zip
Revert "input: read in an external paste in one go, to allow undoing with one M-U"
For some reason this code tends to get stuck on read() on Android. This reverts commit 0e6d693dc82603bc33a8eff35e57eff5cef71aa0. Test: Open nano in adb shell and attempt to paste really long text with unprintable characters in it. Change-Id: Ib5068a70765ab58a01520511a819b54c9529b7e7
-rw-r--r--src/nano.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nano.c b/src/nano.c
index cb5d3b8a..522c31d0 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1383,7 +1383,7 @@ bool okay_for_view(const keystruct *shortcut)
return (item == NULL || item->viewok);
}
-#ifndef NANO_TINY
+#if 0
/* 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);
-#ifndef NANO_TINY
+#if 0
if (bracketed_paste)
suck_up_input_and_paste_it();
#endif