Mercurial > hg > octave-nkf
changeset 19784:7bb80c927af5 gui-release
fix cursor positioning when searching backwards (bug #44039)
* find-dialog.cc (find): fix getting the actual cursor position when
searching backwards
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 18 Jan 2015 22:54:14 +0100 |
parents | f9a944b9e1cb |
children | 722ff3e45bea |
files | libgui/src/m-editor/find-dialog.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.cc +++ b/libgui/src/m-editor/find-dialog.cc @@ -290,8 +290,9 @@ else if (! do_forward) { // search from previous character if search backward + _edit_area->getCursorPosition (&line,&col); int currpos = _edit_area->positionFromLineIndex(line,col); - if(currpos > 0) currpos --; + if (currpos > 0) currpos --; _edit_area->lineIndexFromPosition(currpos, &line,&col); } }