summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-06 18:04:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-06 18:04:13 +0000
commitde688b59e1fb3403e5b291c30dc81064e4452678 (patch)
tree3993cbd1d5c342668682e9174fb78cf9719e3983 /cocoa
parentaa35550b86382788d50d95425cbac511c13ec5ab (diff)
downloadnetsurf-de688b59e1fb3403e5b291c30dc81064e4452678.tar.gz
netsurf-de688b59e1fb3403e5b291c30dc81064e4452678.tar.bz2
Fix text selection
svn path=/trunk/netsurf/; revision=11927
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/selection.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/selection.m b/cocoa/selection.m
index 208776ebb..d894ed40b 100644
--- a/cocoa/selection.m
+++ b/cocoa/selection.m
@@ -72,7 +72,7 @@ static bool cocoa_clipboard_copy_handler(const char *text, size_t length, struct
void *handle, const char *whitespace_text,
size_t whitespace_length)
{
- bool add_space = box != NULL ? box->space : false;
+ bool add_space = box != NULL ? box->space != 0 : false;
if (whitespace_text && !gui_add_to_clipboard( whitespace_text,
whitespace_length, false )) return false;