Skip to content

Commit

Permalink
Merge pull request #579 from DannyBen/fix/user-view-markers
Browse files Browse the repository at this point in the history
Fix view markers for user files
  • Loading branch information
DannyBen authored Dec 20, 2024
2 parents 786d8db + cc3896e commit 5fbb406
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bashly/concerns/renderable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def load_user_file(file, placeholder: true)
''
end

Settings.production? ? content : "#{view_marker path}\n#{content}"
Settings.enabled?(:view_markers) ? "#{view_marker path}\n#{content}" : content
end

# Returns a path to a file in the user's source_dir. The file argument
Expand Down
2 changes: 1 addition & 1 deletion lib/bashly/views/command/parse_requirements_while.gtx
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ end
>
> esac
> done

>
3 changes: 2 additions & 1 deletion lib/bashly/views/command/required_args_filter.gtx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if required_args.any?
= render(:examples_on_error).indent 2
> exit 1
> fi
>
end

>
end
end

0 comments on commit 5fbb406

Please sign in to comment.