aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-11 13:46:35 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-11 19:03:27 +0100
commitabed6a0b1a71e54b143e98678f4daa6818b02f8d (patch)
treefed29c0808a3b0fe88d1e5c41f00b4d270b42554 /src/nvim/vim.h
parent4b7f7be3018563905d55197b43707ebe4ca12e78 (diff)
downloadrneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.tar.gz
rneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.tar.bz2
rneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.zip
vim-patch:8.0.1475: invalid memory access in read_redo()
Problem: Invalid memory access in read_redo(). (gy741) Solution: Convert the replacement character back from a negative number to CR or NL. (hint by Dominique Pelle, closes vim/vim#2616) https://github.com/vim/vim/commit/f12519dec88251305793f1651f558d16506b4be2
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index b932c2d0f8..0c13d331c8 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -313,4 +313,8 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
# define OPEN_CHR_FILES
#endif
+// Replacement for nchar used by nv_replace().
+#define REPLACE_CR_NCHAR -1
+#define REPLACE_NL_NCHAR -2
+
#endif // NVIM_VIM_H