Mercurial > octave-nkf
diff libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @ 19629:be7ac98fab43 gui-release
strip trailing whitespace from most source files
* NEWS, etc/NEWS.3, libgui/graphics/Backend.h,
libgui/graphics/ButtonControl.h, libgui/graphics/EditControl.cc,
libgui/graphics/Object.h, libgui/graphics/QtHandlesUtils.cc,
libgui/graphics/ToolBarButton.h, libgui/graphics/__init_qt__.cc,
libgui/graphics/gl-select.cc,
libgui/qterminal/libqterminal/unix/TerminalView.cpp,
libgui/qterminal/libqterminal/unix/TerminalView.h,
libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp,
libgui/src/m-editor/file-editor-tab.cc,
libgui/src/m-editor/file-editor.cc, libgui/src/m-editor/file-editor.h,
libgui/src/m-editor/octave-qscintilla.cc,
libgui/src/settings-dialog.cc, libgui/src/shortcut-manager.cc,
libgui/src/workspace-view.cc, libinterp/corefcn/graphics.cc,
libinterp/corefcn/input.cc, libinterp/parse-tree/pt-unop.cc,
liboctave/array/dSparse.h, scripts/pkg/pkg.m,
scripts/polynomial/polyeig.m, test/io.tst: Strip trailing whitespace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 09:43:29 -0500 |
parents | fe689210525c |
children | bd1369a2a651 |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp Tue Jan 20 10:05:42 2015 -0500 +++ b/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp Tue Jan 20 09:43:29 2015 -0500 @@ -688,7 +688,7 @@ void QConsolePrivate::selectAll() { m_beginSelection = QPoint (0,0); - m_endSelection = QPoint(m_bufferSize.width (), + m_endSelection = QPoint(m_bufferSize.width (), m_cursorPos.y()); updateSelection(); } @@ -714,13 +714,13 @@ if (QChar(m_buffer[begin.y ()*stride + begin.x ()].Char.UnicodeChar).isSpace () == false) { // from current char, go back and fwd to find start and end of block - while(begin.x () > 0 && + while(begin.x () > 0 && QChar(m_buffer[begin.y ()*stride + begin.x () -1].Char.UnicodeChar).isSpace() == false) { begin.rx () --; } - while(end.x () < m_consoleRect.width () && + while(end.x () < m_consoleRect.width () && QChar(m_buffer[end.y ()*stride + end.x () +1].Char.UnicodeChar).isSpace() == false) { end.rx () ++; @@ -728,13 +728,13 @@ } else { - while(begin.x () > 0 && + while(begin.x () > 0 && QChar(m_buffer[begin.y ()*stride + begin.x () -1].Char.UnicodeChar).isSpace()) { begin.rx () --; } - while(end.x () < m_consoleRect.width () && + while(end.x () < m_consoleRect.width () && QChar(m_buffer[end.y ()*stride + end.x () +1].Char.UnicodeChar).isSpace ()) { end.rx () ++; @@ -1012,7 +1012,7 @@ // command editor will actually use. qputenv ("LINES", QByteArray::number (m_consoleRect.height ())); - qputenv ("COLUMNS", QByteArray::number (m_consoleRect.width ())); + qputenv ("COLUMNS", QByteArray::number (m_consoleRect.width ())); // Force the command line editor (usually readline) to notice the // change in screen size as soon as possible. @@ -1176,7 +1176,7 @@ r.Bottom = m_consoleRect.bottom (); log ("Scrolling window horizontally: (%d, %d) -> (%d, %d) [%d x %d]\n", - r.Left, r.Top, r.Right, r.Bottom, + r.Left, r.Top, r.Right, r.Bottom, r.Right - r.Left + 1, r.Bottom - r.Top + 1); if (SetConsoleWindowInfo (hStdOut, TRUE, &r)) @@ -1203,7 +1203,7 @@ r.Bottom = value + m_consoleRect.height () - 1; log ("Scrolling window vertically: (%d, %d) -> (%d, %d) [%d x %d]\n", - r.Left, r.Top, r.Right, r.Bottom, + r.Left, r.Top, r.Right, r.Bottom, r.Right - r.Left + 1, r.Bottom - r.Top + 1); if (SetConsoleWindowInfo (hStdOut, TRUE, &r)) @@ -1828,7 +1828,7 @@ { foreach (QUrl url, event->mimeData ()->urls ()) { - if(dropText.length () > 0) + if(dropText.length () > 0) dropText += "\n"; dropText += url.toLocalFile (); }