Changeset 11


Ignore:
Timestamp:
10/01/02 17:31:52 (20 years ago)
Author:
piso
Message:

man(Editor, String): minor cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/ManMode.java

    r2 r11  
    33 *
    44 * Copyright (C) 2000-2002 Peter Graves
    5  * $Id: ManMode.java,v 1.1.1.1 2002-09-24 16:07:44 piso Exp $
     5 * $Id: ManMode.java,v 1.2 2002-10-01 17:31:52 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    169169                    return;
    170170            File tempFile = Utilities.getTempFile();
    171             Process process = null;
    172171            String cmd = "man " + topic + " > " + tempFile.canonicalPath();
    173172            String[] cmdarray = {"/bin/sh", "-c", cmd};
    174173            try {
    175                 process = Runtime.getRuntime().exec(cmdarray);
     174                Process process = Runtime.getRuntime().exec(cmdarray);
    176175                process.waitFor();
    177176            }
     
    185184                editor.makeNext(man);
    186185                editor.switchToBuffer(man);
    187                 man.repaint();
    188186            } else
    189187                editor.status("No entry");
Note: See TracChangeset for help on using the changeset viewer.