Skip to content

Commit cc3896e

Browse files
committed
- Fix view markers for user files
1 parent 786d8db commit cc3896e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/bashly/concerns/renderable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def load_user_file(file, placeholder: true)
3232
''
3333
end
3434

35-
Settings.production? ? content : "#{view_marker path}\n#{content}"
35+
Settings.enabled?(:view_markers) ? "#{view_marker path}\n#{content}" : content
3636
end
3737

3838
# Returns a path to a file in the user's source_dir. The file argument

lib/bashly/views/command/parse_requirements_while.gtx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ end
4040
>
4141
> esac
4242
> done
43-
43+
>

lib/bashly/views/command/required_args_filter.gtx

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ if required_args.any?
77
= render(:examples_on_error).indent 2
88
> exit 1
99
> fi
10+
>
1011
end
1112

1213
>
13-
end
14+
end

0 commit comments

Comments
 (0)