Skip to content

Commit

Permalink
Fix: help_text will be stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Aug 17, 2018
1 parent 6eaf287 commit 1be2d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run(self, edit):
help_text = (COMMIT_HELP_TEXT_ALT
if self.savvy_settings.get("commit_on_close")
else COMMIT_HELP_TEXT)
self.view.settings().set("git_savvy.commit_view.help_text", help_text)
self.view.settings().set("git_savvy.commit_view.help_text", help_text.strip())

include_unstaged = self.view.settings().get("git_savvy.commit_view.include_unstaged", False)
option_amend = self.view.settings().get("git_savvy.commit_view.amend")
Expand Down Expand Up @@ -304,7 +304,7 @@ def run(self, edit):
config_email = self.git("config", "user.email").strip()

sign_text = COMMIT_SIGN_TEXT.format(name=config_name, email=config_email)
view_text_list[0] += sign_text
view_text_list[0] = view_text_list[0].rstrip() + sign_text + "\n"

self.view.run_command("gs_replace_view_text", {
"text": help_text.join(view_text_list),
Expand Down

0 comments on commit 1be2d0d

Please sign in to comment.