Sync with view_source_support branch - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 3f03c457ec5572dbb693064bddd1f8ac8664f33f
(DIR) parent 9c7e4aefa20f9ded8099381ad7c4d6f94d499849
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 21 Oct 2018 18:25:00
Sync with view_source_support branch
Diffstat:
wip/vimb3-git/patch-view_source_support.patch | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff -r 9c7e4aefa20f -r 3f03c457ec55 wip/vimb3-git/patch-view_source_support.patch
--- a/wip/vimb3-git/patch-view_source_support.patch Sun Oct 21 14:39:17 2018 +0200
+++ b/wip/vimb3-git/patch-view_source_support.patch Sun Oct 21 18:25:00 2018 +0200
@@ -372,3 +372,19 @@
static VbResult normal_yank(Client *c, const NormalCmdInfo *info)
{
Arg a = {info->key == 'Y' ? COMMAND_YANK_SELECTION : COMMAND_YANK_URI};
+diff --git src/util.c src/util.c
+index d18bc72..0255e54 100644
+--- src/util.c
++++ src/util.c
+@@ -133,6 +133,11 @@ gboolean util_create_tmp_file(const char *content, char **file)
+ return FALSE;
+ }
+
++ if (content == NULL) {
++ close(fp);
++ return TRUE;
++ }
++
+ len = strlen(content);
+
+ /* write content into temporary file */