diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-04-13 08:50:38 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-04-13 08:50:38 +0200 |
commit | 5984657c001fe5b4690cef5ddffe11acbf7da7f2 (patch) | |
tree | 3506bf072dd0238d53ac72f0546dd55133b41f0b | |
parent | 4018b2c5075c1cab603ca137ef5f6d68b9cee483 (diff) | |
download | st-patched-5984657c001fe5b4690cef5ddffe11acbf7da7f2.tar.bz2 st-patched-5984657c001fe5b4690cef5ddffe11acbf7da7f2.tar.xz st-patched-5984657c001fe5b4690cef5ddffe11acbf7da7f2.zip |
Minor naming issue fixed.
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -758,7 +758,7 @@ bpress(XEvent *e) { | |||
758 | void | 758 | void |
759 | selcopy(void) { | 759 | selcopy(void) { |
760 | char *str, *ptr, *p; | 760 | char *str, *ptr, *p; |
761 | int x, y, bufsize, is_selected = 0, size; | 761 | int x, y, bufsize, isselected = 0, size; |
762 | Glyph *gp, *last; | 762 | Glyph *gp, *last; |
763 | 763 | ||
764 | if(sel.bx == -1) { | 764 | if(sel.bx == -1) { |
@@ -769,7 +769,7 @@ selcopy(void) { | |||
769 | 769 | ||
770 | /* append every set & selected glyph to the selection */ | 770 | /* append every set & selected glyph to the selection */ |
771 | for(y = sel.b.y; y < sel.e.y + 1; y++) { | 771 | for(y = sel.b.y; y < sel.e.y + 1; y++) { |
772 | is_selected = 0; | 772 | isselected = 0; |
773 | gp = &term.line[y][0]; | 773 | gp = &term.line[y][0]; |
774 | last = gp + term.col; | 774 | last = gp + term.col; |
775 | 775 | ||
@@ -780,7 +780,7 @@ selcopy(void) { | |||
780 | if(!selected(x, y)) { | 780 | if(!selected(x, y)) { |
781 | continue; | 781 | continue; |
782 | } else { | 782 | } else { |
783 | is_selected = 1; | 783 | isselected = 1; |
784 | } | 784 | } |
785 | 785 | ||
786 | p = (gp->state & GLYPH_SET) ? gp->c : " "; | 786 | p = (gp->state & GLYPH_SET) ? gp->c : " "; |
@@ -798,7 +798,7 @@ selcopy(void) { | |||
798 | * st. | 798 | * st. |
799 | * FIXME: Fix the computer world. | 799 | * FIXME: Fix the computer world. |
800 | */ | 800 | */ |
801 | if(is_selected && y < sel.e.y) | 801 | if(isselected && y < sel.e.y) |
802 | *ptr++ = '\n'; | 802 | *ptr++ = '\n'; |
803 | } | 803 | } |
804 | *ptr = 0; | 804 | *ptr = 0; |