aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorMark Oteiza2016-12-14 12:25:04 -0500
committerMark Oteiza2016-12-14 12:25:04 -0500
commit44a77d34c63fb4188edca6e1a875c9a1ec01f3f7 (patch)
tree039915a51d8be97a06153508da1dac98defe7e60 /src/coding.c
parent51b2669ad51441b3bd318c749e67b267defe4882 (diff)
downloademacs-44a77d34c63fb4188edca6e1a875c9a1ec01f3f7.tar.gz
emacs-44a77d34c63fb4188edca6e1a875c9a1ec01f3f7.zip
Reset window scroll when displaying an image
When viewing a large image full size and scrolling, for instance, to the lower right corner, then selecting a much smaller image in the thumbnail buffer, the window stays scrolled so the new image is out of the window. One must scroll back to the "origin" to view the new displayed image, or just kill the image-dired-display-image buffer and try again. This fixes the issue. * lisp/image-dired.el (image-dired-display-window-width): (image-dired-display-window-height): Operate on a window as argument. (image-dired-display-image): Bind (image-dired-display-window) and use it. Set window vscroll and hscroll to zero when refreshing the buffer's contents.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions