diff options
| author | Karoly Lorentey | 2004-01-25 01:17:40 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-25 01:17:40 +0000 |
| commit | c3b4957fff207e1b7c92ddc8a1b0401892574fce (patch) | |
| tree | 2742f5d458436c9eb52084e4139101e570306957 /src/cm.c | |
| parent | 017bbc62df93de9f88171fc8ffb92c2e616d238b (diff) | |
| download | emacs-c3b4957fff207e1b7c92ddc8a1b0401892574fce.tar.gz emacs-c3b4957fff207e1b7c92ddc8a1b0401892574fce.zip | |
Cosmetic changes.
src/cm.c (calccost, cmgoto): Cosmetic changes.
src/keyboard.c (kbd_buffer_get_event, Fcurrent_input_mode): Ditto.
src/term.c: Cosmetic changes.
src/termchar.h (top_frame): Removed obsolete TODO comment.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-67
Diffstat (limited to 'src/cm.c')
| -rw-r--r-- | src/cm.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -264,11 +264,11 @@ x: | |||
| 264 | * for using n2tabs, then pick the minimum. | 264 | * for using n2tabs, then pick the minimum. |
| 265 | */ | 265 | */ |
| 266 | 266 | ||
| 267 | /* cost for ntabs + cost for right motion */ | 267 | /* cost for ntabs + cost for right motion */ |
| 268 | tabcost = ntabs ? ntabs * tty->Wcm->cc_tab + (dstx - tabx) * tty->Wcm->cc_right | 268 | tabcost = ntabs ? ntabs * tty->Wcm->cc_tab + (dstx - tabx) * tty->Wcm->cc_right |
| 269 | : BIG; | 269 | : BIG; |
| 270 | 270 | ||
| 271 | /* cost for n2tabs + cost for left motion */ | 271 | /* cost for n2tabs + cost for left motion */ |
| 272 | c = n2tabs ? n2tabs * tty->Wcm->cc_tab + (tab2x - dstx) * tty->Wcm->cc_left | 272 | c = n2tabs ? n2tabs * tty->Wcm->cc_tab + (tab2x - dstx) * tty->Wcm->cc_left |
| 273 | : BIG; | 273 | : BIG; |
| 274 | 274 | ||
| @@ -396,9 +396,9 @@ cmgoto (tty, row, col) | |||
| 396 | { | 396 | { |
| 397 | /* compute REAL direct cost */ | 397 | /* compute REAL direct cost */ |
| 398 | cost = 0; | 398 | cost = 0; |
| 399 | p = dcm == tty->Wcm->cm_habs | 399 | p = (dcm == tty->Wcm->cm_habs |
| 400 | ? tgoto (dcm, row, col) | 400 | ? tgoto (dcm, row, col) |
| 401 | : tgoto (dcm, col, row); | 401 | : tgoto (dcm, col, row)); |
| 402 | emacs_tputs (tty, p, 1, evalcost); | 402 | emacs_tputs (tty, p, 1, evalcost); |
| 403 | if (cost <= relcost) | 403 | if (cost <= relcost) |
| 404 | { /* really is cheaper */ | 404 | { /* really is cheaper */ |