You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/01/19 23:43:51 UTC

[whimsy] branch master updated: fix test case failure

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ebee35  fix test case failure
6ebee35 is described below

commit 6ebee35f8d0ce7d575919cdd6c7b4127595fbafd
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Jan 19 18:43:38 2018 -0500

    fix test case failure
---
 www/board/agenda/views/buttons/post.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/buttons/post.js.rb b/www/board/agenda/views/buttons/post.js.rb
index a842414..3625d27 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -191,7 +191,7 @@ class Post < Vue
     indent = start = finish = 0
 
     # extract selection (if any)
-    if textarea.selectionEnd > textarea.selectionStart
+    if textarea and textarea.selectionEnd > textarea.selectionStart
       start = textarea.selectionStart
       start -= 1  while start > 0 and report[start-1] != "\n"
       finish = textarea.selectionEnd

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].