aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2017-10-26 11:21:31 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2017-10-26 11:21:31 +0200
commit66e0b4a06c09de509f5ffb56bfb23a458781cd61 (patch)
tree8e3b21837b86c0500096f519a28d3c2f191fc754 /src/cmd/samterm
parentae750c24e2c3b3dfd771c8990cde3864e031ab6a (diff)
downloadplan9port-66e0b4a06c09de509f5ffb56bfb23a458781cd61.tar.gz
plan9port-66e0b4a06c09de509f5ffb56bfb23a458781cd61.tar.bz2
plan9port-66e0b4a06c09de509f5ffb56bfb23a458781cd61.zip
samterm: Fix indent and code style.
Diffstat (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index 6ab0eedc..a47aa521 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -665,21 +665,21 @@ type(Flayer *l, int res) /* what a bloody mess this is */
center(l, t->rasp.nrunes);
}else if(c == LINESTART || c == LINEEND){
flushtyping(1);
- if(c == LINESTART) {
- if (a > 0 && raspc(&t->rasp, a-1)=='\n')
- a--;
- else {
- while(a > 0 && raspc(&t->rasp, a-1)!='\n')
- a--;
- }
- }else{
- if(a < t->rasp.nrunes && raspc(&t->rasp, a)=='\n')
+ if(c == LINESTART){
+ if (a > 0 && raspc(&t->rasp, a-1)=='\n')
+ a--;
+ else{
+ while(a > 0 && raspc(&t->rasp, a-1)!='\n')
+ a--;
+ }
+ }else{
+ if(a < t->rasp.nrunes && raspc(&t->rasp, a)=='\n')
a++;
- else {
- while(a < t->rasp.nrunes && raspc(&t->rasp, a)!='\n')
- a++;
- }
- }
+ else{
+ while(a < t->rasp.nrunes && raspc(&t->rasp, a)!='\n')
+ a++;
+ }
+ }
l->p0 = l->p1 = a;
for(l=t->l; l<&t->l[NL]; l++)
if(l->textfn)