summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-08-04 11:39:28 +0700
committerMaxime Coste <mawww@kakoune.org>2017-08-04 11:39:28 +0700
commitfc64369f9d8d3279f73b89fdd76df2fa1468ff72 (patch)
tree1efec616364f72c6ca00cc7ec754cb8f6aa49efb /test
parent45a7496f545bf7b10940bc55c27ddf018a1ffd17 (diff)
Purge history on buffer reload when NoUndo flag is on
We were preserving the history in that case, so on fifo buffers (that set the NoUndo flag until the fifo is closed), we still had the history from the "previous life" of the buffer, leading crashes when trying to apply it. Fixes #1518
Diffstat (limited to 'test')
-rw-r--r--test/regression/1518-wrong-undo-handling-with-fifo-buffers/cmd1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/regression/1518-wrong-undo-handling-with-fifo-buffers/cmd b/test/regression/1518-wrong-undo-handling-with-fifo-buffers/cmd
new file mode 100644
index 00000000..a8902d2d
--- /dev/null
+++ b/test/regression/1518-wrong-undo-handling-with-fifo-buffers/cmd
@@ -0,0 +1 @@
+<a-O>ifoo<c-u><esc>:edit -fifo /dev/null <c-r>%<ret>u