Skip to content
Browse files

Tried another way of closing the current file when commiting.

  • Loading branch information...
1 parent eaf3b0b commit 9facd8bbc8dad358cf16e846bd13fd3f13d13e5c @angelortega committed Apr 20, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 mp_vcs.mpsl
View
8 mp_vcs.mpsl
@@ -197,9 +197,6 @@ sub mp.vcs_commit_on_close(doc, cmd, vcsname)
push(ci.on_close,
sub (doc) {
if (stat(doc.name)) {
- /* save current active document */
- local p_active = mp.active_i;
-
local cmd = sprintf(doc.commit_cmd, doc.name);
local log = mp.open(doc.log_name);
@@ -213,9 +210,8 @@ sub mp.vcs_commit_on_close(doc, cmd, vcsname)
log.undo = [];
log.read_only = 1;
- /* set active back */
- mp.active_i = p_active;
- mp.active();
+ /* bring doc to active back */
+ mp.open(doc.name);
}
unlink('.COMMIT_MESSAGE');

0 comments on commit 9facd8b

Please sign in to comment.
Something went wrong with that request. Please try again.