Changeset 3000


Ignore:
Timestamp:
Apr 19, 2018, 11:28:32 PM (7 years ago)
Author:
Andreas Schnellbacher
Message:
  • Fixed finding of the first shell: Handle case when shell with number 1 was closed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/netlabs/macros/epmshell.e

    r2954 r3000  
    297297         ShellStartFid = CurFid
    298298         if fSwitch then
    299             -- Find first shell buffer
    300             ShellNum = 1
     299            -- Find first shell buffer, handle already closed shells
     300            do n = 1 to shell_index
     301               if GetAVar( 'Shell_f'n) <> '' then
     302                  ShellNum = n
     303                  leave
     304               endif
     305            enddo
    301306         else
    302307            -- Find last shell buffer to execute a command there
Note: See TracChangeset for help on using the changeset viewer.