From db89f8c8db65286068a66b198b43ef2a86eea1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=A4llberg?= Date: Wed, 14 May 2014 16:40:51 +0200 Subject: [PATCH] Fixes #63, highlighting file names when renaming up to full stop --- services/web/public/coffee/file-tree/EntityView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/file-tree/EntityView.coffee b/services/web/public/coffee/file-tree/EntityView.coffee index 6b4dae2c7c..b00c0cf017 100644 --- a/services/web/public/coffee/file-tree/EntityView.coffee +++ b/services/web/public/coffee/file-tree/EntityView.coffee @@ -154,7 +154,7 @@ define [ name = @model.get("name") @$inputEl.val(name).focus() if @$inputEl[0].setSelectionRange? - selectionEnd = name.indexOf(".") + selectionEnd = name.lastIndexOf(".") if selectionEnd == -1 selectionEnd = name.length @$inputEl[0].setSelectionRange(0, selectionEnd)