Skip to content

Commit

Permalink
sam: do not change cursor position after :! command
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Aug 7, 2016
1 parent a2f2691 commit e632cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sam.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ static bool cmd_filter(Vis *vis, Win *win, Command *cmd, const char *argv[], Cur
}

static bool cmd_launch(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor *cur, Filerange *range) {
Filerange empty = text_range_new(range->start, EPOS);
Filerange empty = text_range_new(cur ? view_cursors_pos(cur) : range->start, EPOS);
return cmd_filter(vis, win, cmd, argv, cur, &empty);
}

Expand Down

0 comments on commit e632cfd

Please sign in to comment.