Skip to content

Commit

Permalink
Reset horizontal shift when opening a new file.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Nov 29, 2020
1 parent 8839365 commit 3bb781e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extern int any_display;
extern int force_open;
extern int is_tty;
extern int sigs;
extern int hshift;
extern IFILE curr_ifile;
extern IFILE old_ifile;
extern struct scrpos initial_scrpos;
Expand Down Expand Up @@ -478,6 +479,7 @@ edit_ifile(ifile)
#if HILITE_SEARCH
clr_hilite();
#endif
hshift = 0;
if (strcmp(filename, FAKE_HELPFILE) && strcmp(filename, FAKE_EMPTYFILE))
{
char *qfilename = shell_quote(filename);
Expand Down

0 comments on commit 3bb781e

Please sign in to comment.