Ticket #2132: Viewer does't make horizontal scroll to the found text.2132_viewer_horiz_scroll
commite9b945ba63e76590c5d59a18fd0d4c8283818798
authorSlava Zanko <slavazanko@gmail.com>
Wed, 26 May 2010 10:25:09 +0000 (26 13:25 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Wed, 26 May 2010 10:27:02 +0000 (26 13:27 +0300)
tree837289251505153298141cee956d25358ebb1d66
parent6117c5b4ca21e53b7a97bada3c65cbb4c16a1274
Ticket #2132: Viewer does't make horizontal scroll to the found text.

With a long lines, if the text is found for the right of the screen,
viewer doesn't make horizontal scroll to the found text.

How to reproduce:
 * Open file with long lines (Makefile of MC is good for this) in non-wrap mode.
 * Try search '-Wno-long-long' text.
 * Search is successful, but found text is not shown in the screen, because it is
   located at 235 column. but screen width is less than 235. Viewer made vertical
   scroll only to the line with found text.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/viewer/move.c