Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fixes #473 by setting softWrapped to false and #704 issues #708

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/dialog.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ path = require 'path'
module.exports =
class Dialog extends View
@content: ({prompt} = {}) ->
textEditorView = new TextEditorView(mini: true)
textEditorView.getModel().setSoftWrapped(false)
@div class: 'tree-view-dialog', =>
@label prompt, class: 'icon', outlet: 'promptText'
@subview 'miniEditor', new TextEditorView(mini: true)
@subview 'miniEditor', textEditorView
@div class: 'error-message', outlet: 'errorMessage'

initialize: ({initialPath, select, iconClass} = {}) ->
Expand Down
2 changes: 1 addition & 1 deletion lib/tree-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class TreeView extends View
else if activePath = @getActivePath()
selectedPaths = [activePath]

return unless selectedPaths
return unless selectedPaths and selectedPaths.length > 0

for root in @roots
if root.getPath() in selectedPaths
Expand Down