Skip to content

Commit

Permalink
[fingerterm] Don't re-define local variables in clipboard code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Perl committed Jan 17, 2014
1 parent f1b87a8 commit 76e17ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminal.cpp
Expand Up @@ -1312,8 +1312,8 @@ void Terminal::copySelectionToClipboard()
}

// main buffer
int lineFrom = selection().top()-1-iBackBufferScrollPos;
int lineTo = selection().bottom()-1-iBackBufferScrollPos;
lineFrom = selection().top()-1-iBackBufferScrollPos;
lineTo = selection().bottom()-1-iBackBufferScrollPos;
for (int i=lineFrom; i<=lineTo; i++) {
if (i >= 0 && i < buffer().size()) {
line.clear();
Expand Down

0 comments on commit 76e17ff

Please sign in to comment.